From: Jiyong Min Date: Mon, 26 Feb 2018 00:47:21 +0000 (+0900) Subject: Remove abnormal free the decoded buffer to fix crash issue X-Git-Tag: submit/tizen/20180223.061228^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3c288419b3e66275888becd0c226df044a83dba;p=platform%2Fcore%2Fmultimedia%2Flibmm-utility.git Remove abnormal free the decoded buffer to fix crash issue Change-Id: I01da12ea31669cd9da1e572f52cea99d4eb3642d Signed-off-by: Jiyong Min --- diff --git a/jpeg/mm_util_jpeg.c b/jpeg/mm_util_jpeg.c index e524436..3ce4ab0 100755 --- a/jpeg/mm_util_jpeg.c +++ b/jpeg/mm_util_jpeg.c @@ -929,8 +929,6 @@ int mm_util_decode_from_jpeg_file_with_downscale(mm_util_jpeg_yuv_data *decoded, decoded->data = dst; decoded->size = (unsigned int)res_buffer_size; - - MMUTIL_SAFE_FREE(dst); } } else { ret = __mm_image_decode_with_libjpeg(MM_UTIL_JPEG_FILE, decoded, fp, NULL, 0, fmt, downscale); @@ -994,8 +992,6 @@ int mm_util_decode_from_jpeg_memory_with_downscale(mm_util_jpeg_yuv_data *decode decoded->data = dst; decoded->size = (unsigned int)res_buffer_size; - - MMUTIL_SAFE_FREE(dst); } } else { ret = __mm_image_decode_with_libjpeg(MM_UTIL_JPEG_MEM, decoded, NULL, src, size, fmt, downscale);