From 1fe301e0a65de7b7d5af77678c1855d997dcf0e3 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Fri, 19 Oct 2001 18:23:28 +0000 Subject: Null some freed memory svn path=/trunk/; revision=13799 --- my-evolution/ChangeLog | 6 ++++++ my-evolution/e-summary-mail.c | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'my-evolution') diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index 51940df90d..2b77b664a1 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,9 @@ +2001-10-19 Iain Holmes + + * 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 * e-summary.c (e_summary_reload): Only reload the views, don't do an diff --git a/my-evolution/e-summary-mail.c b/my-evolution/e-summary-mail.c index b3696dc5fb..73d919ca4a 100644 --- a/my-evolution/e-summary-mail.c +++ b/my-evolution/e-summary-mail.c @@ -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; } -- cgit v1.2.3