projects
/
platform
/
core
/
api
/
image-util.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f267229
)
Fix memory leak issue for encode gif
55/105055/1
accepted/tizen_3.0.m2_mobile
accepted/tizen_3.0.m2_tv
accepted/tizen_3.0.m2_wearable
tizen_3.0.m2
tizen_3.0_tv
accepted/tizen/3.0.m2/mobile/20170104.100308
accepted/tizen/3.0.m2/tv/20170104.100428
accepted/tizen/3.0.m2/wearable/20170104.101050
accepted/tizen/3.0/common/20161216.123426
accepted/tizen/3.0/ivi/20161216.015802
accepted/tizen/3.0/mobile/20161216.015705
accepted/tizen/3.0/tv/20161216.015722
accepted/tizen/3.0/wearable/20161216.015737
submit/tizen_3.0.m2/20170104.093748
submit/tizen_3.0/20161215.084339
author
Jiyong Min
<jiyong.min@samsung.com>
Thu, 15 Dec 2016 08:13:01 +0000
(17:13 +0900)
committer
Jiyong Min
<jiyong.min@samsung.com>
Thu, 15 Dec 2016 08:13:47 +0000
(17:13 +0900)
Change-Id: Ibaf983e41a5a26da2f21bf4792fbb35ad60165b3
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
src/image_util.c
patch
|
blob
|
history
diff --git
a/src/image_util.c
b/src/image_util.c
index
96a0e30
..
940fe02
100755
(executable)
--- a/
src/image_util.c
+++ b/
src/image_util.c
@@
-1579,6
+1579,7
@@
static int _image_util_encode_create_gif_handle(decode_encode_s * handle)
_handle->frames[0] = (mm_util_gif_frame_data *) calloc(1, sizeof(mm_util_gif_frame_data));
if (_handle->frames[0] == NULL) {
image_util_error("Error - OUT_OF_MEMORY");
+ IMAGE_UTIL_SAFE_FREE(_handle->frames);
IMAGE_UTIL_SAFE_FREE(_handle);
return MM_UTIL_ERROR_OUT_OF_MEMORY;
}