efl: let's preperly clean pointer when we delete stuff.
SVN revision: 82621
This commit is contained in:
parent
23709b48e5
commit
fee7977839
|
@ -142,6 +142,11 @@ _evas_object_text_item_clean(Evas_Object_Text_Item *it)
|
||||||
static void
|
static void
|
||||||
_evas_object_text_item_del(Evas_Object_Text *o, Evas_Object_Text_Item *it)
|
_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(
|
o->items = (Evas_Object_Text_Item *) eina_inlist_remove(
|
||||||
EINA_INLIST_GET(o->items),
|
EINA_INLIST_GET(o->items),
|
||||||
EINA_INLIST_GET(it));
|
EINA_INLIST_GET(it));
|
||||||
|
|
Loading…
Reference in New Issue