Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : net
Dir : e_modules/net
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/net/e_mod_config.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_mod_config.c 3 Jul 2006 07:37:32 -0000 1.15
+++ e_mod_config.c 10 Jul 2006 17:51:33 -0000 1.16
@@ -102,6 +102,7 @@
if (cfdata->devs)
ecore_list_destroy(cfdata->devs);
free(cfdata);
+ cfdata = NULL;
}
static Evas_Object *
===================================================================
RCS file: /cvs/e/e_modules/net/e_mod_main.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- e_mod_main.c 2 Jul 2006 19:06:10 -0000 1.43
+++ e_mod_main.c 10 Jul 2006 17:51:33 -0000 1.44
@@ -136,6 +136,7 @@
_net_free(net);
free(inst);
+ inst = NULL;
}
static void
@@ -316,6 +317,7 @@
net_config->items = evas_list_remove_list(net_config->items,
net_config->items);
if (ci->id) evas_stringshare_del(ci->id);
free(ci);
+ ci = NULL;
}
free(net_config);
net_config = NULL;
@@ -370,6 +372,7 @@
{
evas_object_del(n->net_obj);
free(n);
+ n = NULL;
}
static void
@@ -384,6 +387,7 @@
val->val[0] = value;
edje_object_message_send(inst->net_obj, EDJE_MESSAGE_INT_SET, 1, val);
free(val);
+ val = NULL;
}
static void
@@ -398,6 +402,7 @@
val->val[0] = value;
edje_object_message_send(inst->net_obj, EDJE_MESSAGE_INT_SET, 2, val);
free(val);
+ val = NULL;
}
static void
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs