From: Jihoon Kim Date: Mon, 27 Feb 2017 02:14:27 +0000 (+0900) Subject: Fix memory leak in immodule X-Git-Tag: accepted/tizen/3.0/common/20170228.061502~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d409aad1b4dc97a36295b1f741f73ac2dd3a1fae;p=platform%2Fcore%2Fuifw%2Fisf.git Fix memory leak in immodule ==1321== 156 bytes in 1 blocks are definitely lost in loss record 7,687 of 9,703 ==1321== at 0x4847E64: calloc (vg_replace_malloc.c:623) ==1321== by 0x92EA7E9: wayland_im_context_new (wayland_imcontext.c:3194) ==1321== by 0x92E66DD: im_module_create (wayland_module.c:129) ==1321== by 0x4D521E7: ecore_imf_module_context_create (ecore_imf_module.c:152) ==1321== by 0x4D51EF7: ecore_imf_context_add (ecore_imf_context.c:141) Change-Id: I8ee28941e4dd984f85df6f48d673c092bd455c4b Signed-off-by: Jihoon Kim --- diff --git a/ism/extras/wayland_immodule/wayland_imcontext.c b/ism/extras/wayland_immodule/wayland_imcontext.c index a7c6a13..d9abbaf 100644 --- a/ism/extras/wayland_immodule/wayland_imcontext.c +++ b/ism/extras/wayland_immodule/wayland_imcontext.c @@ -2575,6 +2575,8 @@ wayland_im_context_del (Ecore_IMF_Context *ctx) EINA_LIST_FREE(imcontext->keysym_list, ev) { free(ev); } + + free(imcontext); } void