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)
This commit is contained in:
Jihoon Kim 2017-02-27 20:28:37 +09:00
parent a2dd9fc99d
commit a1da126220
1 changed files with 2 additions and 0 deletions

View File

@ -761,6 +761,8 @@ wayland_im_context_del(Ecore_IMF_Context *ctx)
zwp_text_input_v1_destroy(imcontext->text_input);
clear_preedit(imcontext);
free(imcontext);
}
void