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:
Tom Hacohen 2012-06-11 08:35:07 +00:00
parent c019546d92
commit 39f75a3524
1 changed files with 4 additions and 1 deletions

View File

@ -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 *