Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I8aaed2daa26a935f029d14a630528cf9d632e22b
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;
}
}
- delete [] *curBmp;
+ g_free(*curBmp);
*curBmp = newBmp;
return true;
}