Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_module.c 


Log Message:
Make sure loop ends.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_module.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- e_module.c  15 Feb 2005 11:46:54 -0000      1.18
+++ e_module.c  16 Feb 2005 11:30:32 -0000      1.19
@@ -61,12 +61,12 @@
 int
 e_module_shutdown(void)
 {
-   while (_e_modules)
+   Evas_List *l, *tmp;
+   for (l = _e_modules; l;)
      {
-       E_Module *m;
-       
-       m = _e_modules->data;
-       e_object_del(E_OBJECT(m));
+       tmp = l;
+       l = l->next;
+       e_object_del(E_OBJECT(tmp->data));
      }
    e_object_del(E_OBJECT(_e_path_modules));
    _e_path_modules = NULL;




-------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to