[evolution-patches] message-list spew fix



This fixes a timing related bug (which was mostly cosmetic.. it didn't
seem to cause any memory corruption, just some g_warning spew to the
console) when you select a new folder before the message list has been
updated with the previous folder.

Chris
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.2737
diff -u -r1.2737 ChangeLog
--- ChangeLog	22 May 2003 20:08:40 -0000	1.2737
+++ ChangeLog	27 May 2003 21:56:15 -0000
@@ -1,3 +1,9 @@
+2003-05-27  Chris Toshok  <toshok ximian com>
+
+	* message-list.c (hide_save_state): if ml->folder == NULL, return
+	early.  Fixes some camel object/g_warning spew, which appeared to
+	be totally harmless.
+
 2003-05-21  Radek Doulik  <rodo ximian com>
 
 	* mail-signature-editor.c (menu_file_save_cb): set signature html
Index: message-list.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/message-list.c,v
retrieving revision 1.340
diff -u -r1.340 message-list.c
--- message-list.c	16 May 2003 18:52:14 -0000	1.340
+++ message-list.c	27 May 2003 21:56:15 -0000
@@ -2577,6 +2577,9 @@
 	char *filename;
 	FILE *out;
 
+	if (ml->folder == NULL)
+		return;
+
 	MESSAGE_LIST_LOCK(ml, hide_lock);
 
 	filename = mail_config_folder_to_cachename(ml->folder, "hidestate-");


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