diff options
author | jomui <jongmun.woo@samsung.com> | 2016-06-27 16:34:08 +0900 |
---|---|---|
committer | jomui <jongmun.woo@samsung.com> | 2016-06-27 16:34:28 +0900 |
commit | 9d5c3813af234fb07f4d6cb686b301f3d198af3b (patch) | |
tree | 1aa2f22797be765878cbfd15f05feeb160e42103 /src/here_view_objects.cpp | |
parent | a9394b42715631e48ab8fc1a9d714a8dc15a84ed (diff) | |
download | maps-plugin-here-accepted/tizen/mobile/20160701.032919.tar.gz maps-plugin-here-accepted/tizen/mobile/20160701.032919.tar.bz2 maps-plugin-here-accepted/tizen/mobile/20160701.032919.zip |
fixed SVACE issuesubmit/tizen/20160630.071109accepted/tizen/wearable/20160701.032839accepted/tizen/tv/20160701.032800accepted/tizen/mobile/20160701.032919accepted/tizen/ivi/20160701.032845accepted/tizen/common/20160630.152110
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I8aaed2daa26a935f029d14a630528cf9d632e22b
Diffstat (limited to 'src/here_view_objects.cpp')
-rw-r--r-- | src/here_view_objects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/here_view_objects.cpp b/src/here_view_objects.cpp index fdb0477..9037d3c 100644 --- a/src/here_view_objects.cpp +++ b/src/here_view_objects.cpp @@ -534,7 +534,7 @@ bool HereViewObjects::__resizeBitmap(unsigned char **curBmp, int curWidth, int c if (!curBmp || curWidth <= 0 || curHeight <= 0 || newWidth <= 0 || newHeight <= 0) return false; if (curWidth == newWidth && curHeight == newHeight) return false; - unsigned char* newBmp = new unsigned char[newWidth * newHeight * 4]; + unsigned char *newBmp = (unsigned char*)malloc(newWidth * newHeight * 4); double scaleWidth = (double)newWidth / (double)curWidth; double scaleHeight = (double)newHeight / (double)curHeight; @@ -553,7 +553,7 @@ bool HereViewObjects::__resizeBitmap(unsigned char **curBmp, int curWidth, int c } } - delete [] *curBmp; + g_free(*curBmp); *curBmp = newBmp; return true; } |