From c6ce9e563ba357563f35a905203155acf9d7b854 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 3 Jul 2012 08:33:54 +0000 Subject: [PATCH] fix e widget smart deletion to not be stupid SVN revision: 73210 --- src/bin/e_widget.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/bin/e_widget.c b/src/bin/e_widget.c index b536009..c7d1cfc 100644 --- a/src/bin/e_widget.c +++ b/src/bin/e_widget.c @@ -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); } -- 2.7.4