fixed SVACE issue 67/76767/1 accepted/tizen/common/20160630.152110 accepted/tizen/ivi/20160701.032845 accepted/tizen/mobile/20160701.032919 accepted/tizen/tv/20160701.032800 accepted/tizen/wearable/20160701.032839 submit/tizen/20160630.071109
authorjomui <jongmun.woo@samsung.com>
Mon, 27 Jun 2016 07:34:08 +0000 (16:34 +0900)
committerjomui <jongmun.woo@samsung.com>
Mon, 27 Jun 2016 07:34:28 +0000 (16:34 +0900)
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I8aaed2daa26a935f029d14a630528cf9d632e22b

src/here_view_objects.cpp

index fdb0477..9037d3c 100644 (file)
@@ -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;
 }