From 502c98d9936466f6095179063c125c9b1cabeead Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 27 Dec 2005 23:44:16 +0000 Subject: [PATCH] Fix e_ilist compile warning SVN revision: 19330 --- src/bin/e_ilist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/e_ilist.c b/src/bin/e_ilist.c index 984a9a9..e1cbfa2 100644 --- a/src/bin/e_ilist.c +++ b/src/bin/e_ilist.c @@ -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 */ -- 2.7.4