summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2017-02-27 20:28:37 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2017-02-27 21:31:07 +0900
commita1da12622053727093754ea6fad53da9d35cba8d (patch)
tree07ec6435a4cb514b71831d2c3c9ad0ee64e8686b /src
parenta2dd9fc99dbddc1c6612381d0544c7ced17965ec (diff)
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)
Diffstat (limited to 'src')
-rw-r--r--src/modules/ecore_imf/wayland/wayland_imcontext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/ecore_imf/wayland/wayland_imcontext.c b/src/modules/ecore_imf/wayland/wayland_imcontext.c
index a70c24f2b4..75e4d80149 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)
761 zwp_text_input_v1_destroy(imcontext->text_input); 761 zwp_text_input_v1_destroy(imcontext->text_input);
762 762
763 clear_preedit(imcontext); 763 clear_preedit(imcontext);
764
765 free(imcontext);
764} 766}
765 767
766void 768void