jihoon pushed a commit to branch efl-1.11. http://git.enlightenment.org/core/efl.git/commit/?id=6c74e367cb490feb63a2ac67f3bcb14df2c5730a
commit 6c74e367cb490feb63a2ac67f3bcb14df2c5730a Author: Jihoon Kim <[email protected]> Date: Tue Sep 30 09:31:33 2014 +0900 ecore_imf/wayland: fix memory leak occured after getting surrounding text --- 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 1ca44b0..a83b493 100644 --- a/src/modules/ecore_imf/wayland/wayland_imcontext.c +++ b/src/modules/ecore_imf/wayland/wayland_imcontext.c @@ -235,6 +235,8 @@ text_input_commit_string(void *data, "delete on commit (text: `%s', offset `%d', length: `%d')", surrounding, ev.offset, ev.n_chars); + free(surrounding); + ecore_imf_context_delete_surrounding_event_add(imcontext->ctx, ev.offset, ev.n_chars); ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_DELETE_SURROUNDING, &ev); } --
