summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-09-30 09:31:33 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-10-06 08:17:18 +0900
commit6c74e367cb490feb63a2ac67f3bcb14df2c5730a (patch)
tree158ae02d692f08a566c1608c89b2327c95d00293
parent5bc619868d35fe214c0b7124820c468423e6512d (diff)
downloadefl-6c74e367cb490feb63a2ac67f3bcb14df2c5730a.tar.gz
ecore_imf/wayland: fix memory leak occured after getting surrounding text
-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 1ca44b017c..a83b493ecc 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);
}