Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : mail
Dir : e_modules/mail
Modified Files:
e_mod_config.c e_mod_main.c imap.c mbox.c mdir.c pop.c
Log Message:
Avoid dangling pointers after call to free.
===================================================================
RCS file: /cvs/e/e_modules/mail/e_mod_config.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- e_mod_config.c 3 Jul 2006 07:37:32 -0000 1.12
+++ e_mod_config.c 10 Jul 2006 17:56:27 -0000 1.13
@@ -73,6 +73,7 @@
if (!mail_config) return;
mail_config->config_dialog = NULL;
free(cfdata);
+ cfdata = NULL;
}
static Evas_Object *
===================================================================
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- e_mod_main.c 2 Jul 2006 19:06:09 -0000 1.29
+++ e_mod_main.c 10 Jul 2006 17:56:27 -0000 1.30
@@ -143,6 +143,7 @@
mail_config->instances = evas_list_remove(mail_config->instances, inst);
_mail_free(inst->mail);
free(inst);
+ inst = NULL;
}
static void
@@ -415,10 +416,12 @@
if (cb->exec) evas_stringshare_del(cb->exec);
ci->boxes = evas_list_remove_list(ci->boxes, ci->boxes);
free(cb);
+ cb = NULL;
}
if (ci->id) evas_stringshare_del(ci->id);
mail_config->items = evas_list_remove_list(mail_config->items,
mail_config->items);
free(ci);
+ ci = NULL;
}
_mail_imap_shutdown();
_mail_pop_shutdown();
@@ -481,6 +484,7 @@
{
evas_object_del(mail->mail_obj);
free(mail);
+ mail = NULL;
}
static int
===================================================================
RCS file: /cvs/e/e_modules/mail/imap.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- imap.c 13 Jun 2006 16:06:30 -0000 1.9
+++ imap.c 10 Jul 2006 17:56:27 -0000 1.10
@@ -78,7 +78,6 @@
void
_mail_imap_shutdown()
{
-
if (!iservers) return;
while (iservers)
{
@@ -93,6 +92,7 @@
ecore_event_handler_del(is->data_handler);
iservers = evas_list_remove_list(iservers, iservers);
free(is);
+ is = NULL;
}
}
===================================================================
RCS file: /cvs/e/e_modules/mail/mbox.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- mbox.c 13 Jun 2006 12:24:07 -0000 1.4
+++ mbox.c 10 Jul 2006 17:56:27 -0000 1.5
@@ -44,6 +44,7 @@
ecore_file_monitor_del(mb->monitor);
mboxes = evas_list_remove(mboxes, mb);
free(mb);
+ mb = NULL;
break;
}
}
@@ -61,6 +62,7 @@
ecore_file_monitor_del(mb->monitor);
mboxes = evas_list_remove_list(mboxes, mboxes);
free(mb);
+ mb = NULL;
}
}
===================================================================
RCS file: /cvs/e/e_modules/mail/mdir.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- mdir.c 13 Jun 2006 12:24:07 -0000 1.4
+++ mdir.c 10 Jul 2006 17:56:27 -0000 1.5
@@ -43,6 +43,7 @@
if (mc->config != cb) continue;
mdirs = evas_list_remove(mdirs, mc);
free(mc);
+ mc = NULL;
break;
}
}
@@ -60,6 +61,7 @@
ecore_file_monitor_del(mc->monitor);
mdirs = evas_list_remove_list(mdirs, mdirs);
free(mc);
+ mc = NULL;
}
}
===================================================================
RCS file: /cvs/e/e_modules/mail/pop.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- pop.c 13 Jun 2006 12:24:07 -0000 1.4
+++ pop.c 10 Jul 2006 17:56:27 -0000 1.5
@@ -101,6 +101,7 @@
ecore_event_handler_del(pc->data_handler);
pclients = evas_list_remove_list(pclients, pclients);
free(pc);
+ pc = NULL;
}
}
-------------------------------------------------------------------------
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