Fix build warning 59/61959/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 11 Mar 2016 11:43:48 +0000 (20:43 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 11 Mar 2016 11:43:48 +0000 (20:43 +0900)
Change-Id: I09665e863e094b1215d0e3e4330f4dae74f7c0e5

src/inputmethod.cpp

index 71d3832..a592a4a 100644 (file)
@@ -787,10 +787,12 @@ int ime_update_preedit_string(const char *str, Eina_List *attrs)
     }
 
     scim::AttributeList attrv;
+    void *data = NULL;
     ime_preedit_attribute *attr = NULL;
 
     if (attrs) {
-        EINA_LIST_FREE(attrs, attr) {
+        EINA_LIST_FREE(attrs, data) {
+            attr = (ime_preedit_attribute *)data;
             if (attr) {
                 attrv.push_back(scim::Attribute(attr->start, attr->length, (scim::AttributeType)attr->type, attr->value));
                 free(attr);