diff options
author | Lim DoHyung <delight.lim@samsung.com> | 2017-02-21 14:54:28 +0900 |
---|---|---|
committer | Lim DoHyung <delight.lim@samsung.com> | 2017-02-21 14:54:28 +0900 |
commit | 0ef228e5eec9c619914b96e50c672e634587e84c (patch) | |
tree | f0d8c4bc7c34564e1bdc7b5bf9ec0ce1051c0653 | |
parent | a1553d6a0bfd0f29cf9797786e9c445c1e8cbb1a (diff) | |
download | browser-provider-accepted/tizen_3.0_mobile.tar.gz browser-provider-accepted/tizen_3.0_mobile.tar.bz2 browser-provider-accepted/tizen_3.0_mobile.zip |
info pointer memory de-allocate svace issue.submit/tizen_3.0/20170221.074556accepted/tizen/3.0/tv/20170222.082553accepted/tizen/3.0/mobile/20170222.082520accepted/tizen/3.0/ivi/20170222.082636accepted/tizen/3.0/common/20170222.125630accepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_common
Change-Id: If17d56a39922429baba6e705aa3a02d73f1374f3
Signed-off-by: Lim DoHyung <delight.lim@samsung.com>
-rwxr-xr-x | common-adaptor/common-adaptor-png.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common-adaptor/common-adaptor-png.c b/common-adaptor/common-adaptor-png.c index 91f9aa4..8eee306 100755 --- a/common-adaptor/common-adaptor-png.c +++ b/common-adaptor/common-adaptor-png.c @@ -71,7 +71,7 @@ int bp_common_raw_to_png(const unsigned char *raw_data, int width, png_voidp png_buffer = calloc(width * height, sizeof(png_bytep)); if (png_buffer == NULL) { TRACE_ERROR("malloc failed"); - png_destroy_write_struct(&png_ptr, (png_infopp)0); + png_destroy_write_struct(&png_ptr, &info_ptr); return -1; } bp_image_fmt write_io_ptr; @@ -86,7 +86,7 @@ int bp_common_raw_to_png(const unsigned char *raw_data, int width, png_bytep *row_pointers = malloc((size_t)(height * sizeof(png_bytep))); if (row_pointers == NULL){ TRACE_ERROR("malloc failed"); - png_destroy_write_struct(&png_ptr, (png_infopp)0); + png_destroy_write_struct(&png_ptr, &info_ptr); free(png_buffer); return -1; } |