forked from enlightenment/efl
Evas smart: Remove from the list, don't assume we have not other refcounts.
Without it, it just assumes the object has no refcounts and deletes the object by force. It's very bad if you use refcounts, because your refcounts are gone. SVN revision: 71936
This commit is contained in:
parent
c019546d92
commit
39f75a3524
|
@ -301,7 +301,10 @@ _evas_object_smart_members_all_del(Evas_Object *obj)
|
|||
{
|
||||
Evas_Object_Smart *o = (Evas_Object_Smart *)(obj->object_data);
|
||||
while (o->contained)
|
||||
evas_object_del((Evas_Object *)(o->contained));
|
||||
{
|
||||
evas_object_smart_member_del(
|
||||
EINA_INLIST_CONTAINER_GET(o->contained, Evas_Object));
|
||||
}
|
||||
}
|
||||
|
||||
EAPI Evas_Object *
|
||||
|
|
Loading…
Reference in New Issue