From 9620d7056c486390fa1970fbd2c94573b612db87 Mon Sep 17 00:00:00 2001 From: jihoon Date: Sat, 17 Mar 2012 10:44:04 +0000 Subject: [PATCH] ecore_imf: add free memory code in ecore_imf_context_preedit_string_with_attributes_get example git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@69487 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_imf/ecore_imf_context.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c index 947de61..6392f9b 100644 --- a/src/lib/ecore_imf/ecore_imf_context.c +++ b/src/lib/ecore_imf/ecore_imf_context.c @@ -477,6 +477,14 @@ ecore_imf_context_preedit_string_get(Ecore_IMF_Context *ctx, char **str, int *cu * } * } * } + * + * // delete attribute list + * if (attrs) + * { + * EINA_LIST_FREE(attrs, attr) free(attr); + * } + * + * free(preedit_string); * @endcode * @since 1.1.0 */ -- 2.7.4