summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrohit <rohit1.kr@samsung.com>2021-02-02 19:01:16 +0530
committerrohit <rohit1.kr@samsung.com>2021-02-02 19:03:58 +0530
commit7435073c7ab5e107446e3d6fff5b9eb49b1ae8a1 (patch)
treed973186bdde64a0c82b5e97b424d914379e511e8
parent4df11f5529df33af51c9dc7df859314a531372a0 (diff)
downloadmaps-plugin-here-submit/tizen/20210203.052607.tar.gz
maps-plugin-here-submit/tizen/20210203.052607.tar.bz2
maps-plugin-here-submit/tizen/20210203.052607.zip
Change-Id: I7d722337d245a7d9eb7b86e8bf26466dbc83c923
-rw-r--r--src/here_view_objects.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/here_view_objects.cpp b/src/here_view_objects.cpp
index 0938074..c137085 100644
--- a/src/here_view_objects.cpp
+++ b/src/here_view_objects.cpp
@@ -548,6 +548,10 @@ bool HereViewObjects::__resizeBitmap(unsigned char **curBmp, int curWidth, int c
if (curWidth == newWidth && curHeight == newHeight) return false;
unsigned char *newBmp = (unsigned char*)malloc(newWidth * newHeight * 4);
+ if(!newBmp) {
+ MAPS_LOGD("malloc failed for newBmp");
+ return false;
+ }
double scaleWidth = (double)newWidth / (double)curWidth;
double scaleHeight = (double)newHeight / (double)curHeight;