Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_error.c 


Log Message:
Nicer loop.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_error.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_error.c   7 Feb 2005 13:51:09 -0000       1.4
+++ e_error.c   16 Feb 2005 11:25:30 -0000      1.5
@@ -263,18 +263,14 @@
 _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);
 }




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to