[evolution-patches] [Mailer] Fix for bug 333987



Hi

When you are opening a message in OutBox, it probably has been removed.
So evolution gets a null CamelMessageInfo. Check whether info is null
before freeing it.

Attached is a patch for bug 333987, pls review it.

Thanks.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3818
diff -u -r1.3818 ChangeLog
--- ChangeLog	6 Mar 2006 10:44:25 -0000	1.3818
+++ ChangeLog	9 Mar 2006 08:23:06 -0000
@@ -1,3 +1,9 @@
+2006-03-09  Jeff Cai  <jeff cai sun com>
+
+	Fixes bug #333987
+	* message-list.c: (mail_folder_hide_by_flag):
+	If CamelMessageInfo is null, don't free it.
+
 2006-03-06  Simon Zheng  <simon zheng sun com>
 
 	Fixes bug #332140
Index: message-list.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/message-list.c,v
retrieving revision 1.424
diff -u -r1.424 message-list.c
--- message-list.c	10 Feb 2006 22:28:01 -0000	1.424
+++ message-list.c	9 Mar 2006 08:23:07 -0000
@@ -2710,7 +2710,8 @@
 			camel_folder_change_info_add_uid (newchanges, oldchanges->uid_changed->pdata[i]);
 		else
 			camel_folder_change_info_change_uid (newchanges, oldchanges->uid_changed->pdata[i]);
-		camel_folder_free_message_info (folder, info);
+		if (info)
+			camel_folder_free_message_info (folder, info);
 	}
 
 	if (newchanges->uid_added->len > 0 || newchanges->uid_removed->len > 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]