Fix memory leak in immodule 33/116533/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 27 Feb 2017 02:14:27 +0000 (11:14 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 27 Feb 2017 11:15:11 +0000 (03:15 -0800)
==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 <jihoon48.kim@samsung.com>
ism/extras/wayland_immodule/wayland_imcontext.c

index a7c6a13..d9abbaf 100644 (file)
@@ -2575,6 +2575,8 @@ wayland_im_context_del (Ecore_IMF_Context *ctx)
     EINA_LIST_FREE(imcontext->keysym_list, ev) {
         free(ev);
     }
+
+    free(imcontext);
 }
 
 void