aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/message-list.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 29d58a5fdb..3fa1c75c27 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-05 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-29 Parthasarathi Susarla <sparthasarathi@novell.com>
* em-folder-view.c:(smfv_setup_view_instance): use the
diff --git a/mail/message-list.c b/mail/message-list.c
index 610bc1e76c..a9796afc45 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2710,7 +2710,8 @@ mail_folder_hide_by_flag (CamelFolder *folder, MessageList *ml, CamelFolderChang
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) {