summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLim DoHyung <delight.lim@samsung.com>2017-02-21 14:54:28 +0900
committerLim DoHyung <delight.lim@samsung.com>2017-02-21 14:54:28 +0900
commit0ef228e5eec9c619914b96e50c672e634587e84c (patch)
treef0d8c4bc7c34564e1bdc7b5bf9ec0ce1051c0653
parenta1553d6a0bfd0f29cf9797786e9c445c1e8cbb1a (diff)
downloadbrowser-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
Change-Id: If17d56a39922429baba6e705aa3a02d73f1374f3 Signed-off-by: Lim DoHyung <delight.lim@samsung.com>
-rwxr-xr-xcommon-adaptor/common-adaptor-png.c4
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;
}