this code appears to be functionally identical, yet one version breaks the world.

SVN revision: 73258
This commit is contained in:
Mike Blumenkrantz 2012-07-04 08:29:30 +00:00
parent e0663ff92d
commit a4d99c2f30
1 changed files with 6 additions and 3 deletions

View File

@ -514,11 +514,14 @@ static void
_e_smart_del(Evas_Object *obj)
{
INTERNAL_ENTRY;
Evas_Object *o;
if (sd->del_func) sd->del_func(obj);
EINA_LIST_FREE(sd->subobjs, o)
evas_object_del(o);
while (sd->subobjs)
{
Evas_Object *sobj = sd->subobjs->data;
evas_object_del(sobj);
sd->subobjs = eina_list_remove(sd->subobjs, sobj);
}
free(sd);
}