From: sebastid Date: Wed, 16 Feb 2005 11:25:30 +0000 (+0000) Subject: Nicer loop. X-Git-Tag: submit/efl/20131021.015651~16342 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75916a26b926bfc0c9bb0620d97f0b9e180e14b1;p=platform%2Fupstream%2Fenlightenment.git Nicer loop. SVN revision: 13392 --- diff --git a/src/bin/e_error.c b/src/bin/e_error.c index 6390765..ea24a01 100644 --- a/src/bin/e_error.c +++ b/src/bin/e_error.c @@ -263,18 +263,14 @@ static void _e_error_cb_job_ecore_evas_free(void *data) { Ecore_Evas *ee; - Evas_List *shapelist; + Evas_List *shapelist, *l; ee = data; shapelist = ecore_evas_data_get(ee, "shapes"); - while (shapelist) - { - E_Container_Shape *es; - - es = shapelist->data; - shapelist = evas_list_remove_list(shapelist, shapelist); - e_object_del(E_OBJECT(es)); - } + for (l = shapelist; l; l = l->next) + e_object_del(E_OBJECT(l->data)); + evas_list_free(shapelist); + e_canvas_del(ee); ecore_evas_free(ee); }