Null some freed memory
svn path=/trunk/; revision=13799
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
2001-10-19 Iain Holmes <iain@ximian.com>
|
||||
|
||||
* e-summary-mail.c (e_summary_mail_init): set the summary->mail to
|
||||
NULL after freeing it.
|
||||
(mail_change_notify): Return if mail == NULL.
|
||||
|
||||
2001-10-18 Iain Holmes <iain@ximian.com>
|
||||
|
||||
* e-summary.c (e_summary_reload): Only reload the views, don't do an
|
||||
|
@ -278,6 +278,8 @@ mail_change_notify (BonoboListener *listener,
|
||||
|
||||
mail = summary->mail;
|
||||
|
||||
g_return_if_fail (mail != NULL);
|
||||
|
||||
count = arg->_value;
|
||||
folder = g_hash_table_lookup (mail->folders, count->path);
|
||||
|
||||
@ -404,6 +406,8 @@ e_summary_mail_init (ESummary *summary,
|
||||
CORBA_exception_free (&ev);
|
||||
|
||||
g_free (mail);
|
||||
summary->mail = NULL;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user