From d409aad1b4dc97a36295b1f741f73ac2dd3a1fae Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 27 Feb 2017 11:14:27 +0900 Subject: [PATCH] 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 --- ism/extras/wayland_immodule/wayland_imcontext.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.7.4