Fix e_ilist compile warning
authorChristopher Michael <cpmichael1@comcast.net>
Tue, 27 Dec 2005 23:44:16 +0000 (23:44 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Tue, 27 Dec 2005 23:44:16 +0000 (23:44 +0000)
SVN revision: 19330

src/bin/e_ilist.c

index 984a9a9..e1cbfa2 100644 (file)
@@ -274,7 +274,7 @@ e_ilist_remove_label(Evas_Object *obj, char *label)
        si = l->data;
        if (si) 
          {
-            t = edje_object_part_text_get(si->base_obj, "label");
+            t = strdup(edje_object_part_text_get(si->base_obj, "label"));
             if (!strcmp(t, label)) 
               {
                  if (si->icon_obj) evas_object_del(si->icon_obj);
@@ -284,7 +284,8 @@ e_ilist_remove_label(Evas_Object *obj, char *label)
                  break;
               }
          }
-     }   
+     }
+   free(t);
 }
 
 /* local subsystem functions */