fix e widget smart deletion to not be stupid

SVN revision: 73210
This commit is contained in:
Mike Blumenkrantz 2012-07-03 08:33:54 +00:00
parent 03b5169963
commit c6ce9e563b
1 changed files with 3 additions and 6 deletions

View File

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