Fix eina_stringshare usage...thanks k-s :)
authorChristopher Michael <cpmichael1@comcast.net>
Thu, 1 Apr 2010 23:14:16 +0000 (23:14 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 1 Apr 2010 23:14:16 +0000 (23:14 +0000)
SVN revision: 47674

src/bin/e_ilist.c

index 74ff441..8e30acc 100644 (file)
@@ -735,9 +735,8 @@ e_ilist_nth_label_set(Evas_Object *obj, int n, const char *label)
    si = eina_list_nth(sd->items, n);
    if (si) 
      {
-        if (si->label) eina_stringshare_del(si->label);
-        si->label = eina_stringshare_add(label);
-        edje_object_part_text_set(si->o_base, "e.text.label", label);
+        if (eina_stringshare_replace(&si->label, label))
+          edje_object_part_text_set(si->o_base, "e.text.label", label);
      }
 }