[Mailer] Fix for bug 333987

Jeff Cai <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <1141892807.3624.3.camel@commissionaire>
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.

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
patch333987 (text/x-patch, 1.2 KB)
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  <[email protected]>
+
+	Fixes bug #333987
+	* message-list.c: (mail_folder_hide_by_flag):
+	If CamelMessageInfo is null, don't free it.
+
 2006-03-06  Simon Zheng  <[email protected]>
 
 	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) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.