jihoon pushed a commit to branch efl-1.18.

http://git.enlightenment.org/core/efl.git/commit/?id=8a58d376c62584f14e68eeaa310d7048281dd8d5

commit 8a58d376c62584f14e68eeaa310d7048281dd8d5
Author: Jihoon Kim <jihoon48....@samsung.com>
Date:   Mon Feb 27 20:28:37 2017 +0900

    ecore_imf/wayland: 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:1094)
    ==1321==    by 0x92E66DD: im_module_create (wayland_module.c:132)
    ==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)
---
 src/modules/ecore_imf/wayland/wayland_imcontext.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/modules/ecore_imf/wayland/wayland_imcontext.c 
b/src/modules/ecore_imf/wayland/wayland_imcontext.c
index 9cd5c63..72001ad 100644
--- a/src/modules/ecore_imf/wayland/wayland_imcontext.c
+++ b/src/modules/ecore_imf/wayland/wayland_imcontext.c
@@ -761,6 +761,8 @@ wayland_im_context_del(Ecore_IMF_Context *ctx)
      wl_text_input_destroy(imcontext->text_input);
 
    clear_preedit(imcontext);
+
+   free(imcontext);
 }
 
 EAPI void

-- 


Reply via email to