From: Jihoon Kim Date: Mon, 19 Jun 2017 01:29:03 +0000 (+0900) Subject: Remove unnecessary memory allocation X-Git-Tag: accepted/tizen/unified/20170630.083230~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F76%2F134476%2F1;p=platform%2Fcore%2Fapi%2Finputmethod.git Remove unnecessary memory allocation Change-Id: Ib2d7693a8fb9d5a844db3d504bc5e22718f10388 Signed-off-by: Jihoon Kim --- diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 3a45156..1841ff9 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -401,14 +401,10 @@ void CCoreEventCallback::on_update_lookup_table(SclCandidateTable &table) if (g_event_callback.lookup_table_changed) { vector::iterator iter = table.candidate.begin(); for (; iter != table.candidate.end(); ++iter) { - string_list = eina_list_append(string_list, strdup(iter->c_str())); + string_list = eina_list_append(string_list, iter->c_str()); } g_event_callback.lookup_table_changed(string_list, g_event_callback.lookup_table_changed_user_data); - - void *ev; - EINA_LIST_FREE(string_list, ev) - free((char *)ev); } }