From 9be7cad2cd1adb738c571ccbff976b142c15598f Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Wed, 24 Oct 2001 11:52:28 +0000 Subject: Correct fix for 12236. Stops the crashing and leaves the summary in a usable state. svn path=/trunk/; revision=13982 --- my-evolution/ChangeLog | 5 +++++ my-evolution/e-summary-mail.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'my-evolution') diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index 5a35dd3272..cceecbda73 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,8 @@ +2001-10-24 Iain Holmes + + * e-summary-mail.c (e_summary_mail_init): Don't free the mail part. + Allows the summary to still function without the mail part. + 2001-10-22 Anna Marie Dirks * my-evolution.glade: Changed "Add new feed" to "Add news feed". diff --git a/my-evolution/e-summary-mail.c b/my-evolution/e-summary-mail.c index 73d919ca4a..149678b51d 100644 --- a/my-evolution/e-summary-mail.c +++ b/my-evolution/e-summary-mail.c @@ -400,14 +400,11 @@ e_summary_mail_init (ESummary *summary, mail->html = NULL; CORBA_exception_init (&ev); mail->folder_info = oaf_activate_from_id (MAIL_IID, 0, NULL, &ev); - if (BONOBO_EX (&ev)) { + if (BONOBO_EX (&ev) || mail->folder_info == NULL) { g_warning ("Exception creating FolderInfo: %s", CORBA_exception_id (&ev)); CORBA_exception_free (&ev); - g_free (mail); - summary->mail = NULL; - return; } -- cgit