ecore_imf/wayland: fix memory leak occured after getting surrounding text

This commit is contained in:
Jihoon Kim 2014-09-30 09:31:33 +09:00
parent f9e862e52e
commit dd94425ecc
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}