efl: let's preperly clean pointer when we delete stuff.
authorCedric BAIL <cedric.bail@free.fr>
Fri, 11 Jan 2013 08:31:09 +0000 (08:31 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Fri, 11 Jan 2013 08:31:09 +0000 (08:31 +0000)
SVN revision: 82621

src/lib/evas/canvas/evas_object_text.c

index 7e58ef3..33b326f 100644 (file)
@@ -142,6 +142,11 @@ _evas_object_text_item_clean(Evas_Object_Text_Item *it)
 static void
 _evas_object_text_item_del(Evas_Object_Text *o, Evas_Object_Text_Item *it)
 {
+   if (o->last_computed.ellipsis_start == it)
+     o->last_computed.ellipsis_start = NULL;
+   else if (o->last_computed.ellipsis_end == it)
+     o->last_computed.ellipsis_end = NULL;
+
    o->items = (Evas_Object_Text_Item *) eina_inlist_remove(
          EINA_INLIST_GET(o->items),
          EINA_INLIST_GET(it));