Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : snow

Dir     : e_modules/snow


Modified Files:
        e_mod_config.c e_mod_main.c 


Log Message:
Avoid dangling pointers after call to free().

===================================================================
RCS file: /cvs/e/e_modules/snow/e_mod_config.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- e_mod_config.c      3 Jul 2006 07:37:32 -0000       1.18
+++ e_mod_config.c      10 Jul 2006 17:58:59 -0000      1.19
@@ -81,6 +81,7 @@
    sn = cfd->data;
    sn->config_dialog = NULL;
    free(cfdata);
+   cfdata = NULL;
 }
 
 static Evas_Object *
===================================================================
RCS file: /cvs/e/e_modules/snow/e_mod_main.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_mod_main.c        2 Jul 2006 19:06:10 -0000       1.19
+++ e_mod_main.c        10 Jul 2006 17:58:59 -0000      1.20
@@ -186,6 +186,7 @@
         evas_object_del(flake->flake);
         snow->flakes = evas_list_remove_list(snow->flakes, snow->flakes);
         free(flake);
+       flake = NULL;
      }
 }
 
@@ -193,6 +194,7 @@
 _snow_shutdown(Snow *snow)
 {
    free(snow->conf);
+   snow->conf = NULL;
    E_CONFIG_DD_FREE(snow->conf_edd);
    while (snow->cons)
      {
@@ -206,6 +208,7 @@
    if (snow->animator)
       ecore_animator_del(snow->animator);
    free(snow);
+   snow = NULL;
 }
 
 static E_Menu *




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to