[Fwd: [evolution-patches] 63456, mail crash destroy race]



2.0 patch

--
Michael Zucchi <notzed ximian com>
"born to die, live to work, it's all downhill from here"
Novell's Evolution and Free Software Developer
--- Begin Message ---
--
Michael Zucchi <notzed ximian com>
"born to die, live to work, it's all downhill from here"
Novell's Evolution and Free Software Developer
Index: mail/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3442
diff -u -3 -r1.3442 ChangeLog
--- mail/ChangeLog	26 Aug 2004 16:16:54 -0000	1.3442
+++ mail/ChangeLog	27 Aug 2004 07:22:34 -0000
@@ -1,3 +1,10 @@
+2004-08-27  Not Zed  <NotZed Ximian com>
+
+	** See bug #63456.
+
+	* message-list.c (main_folder_changed): noop if the async_event
+	pointer is NULL which can happen during destroy.
+
 2004-08-26  Christian Neumair  <chris gnome-de org>
 
 	* GNOME_Evolution_Mail.server.in.in:
Index: mail/message-list.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/message-list.c,v
retrieving revision 1.397
diff -u -3 -r1.397 message-list.c
--- mail/message-list.c	18 Aug 2004 02:29:32 -0000	1.397
+++ mail/message-list.c	27 Aug 2004 07:22:35 -0000
@@ -2689,6 +2689,10 @@
 	CamelFolderChangeInfo *changes = (CamelFolderChangeInfo *)event_data;
 	CamelFolder *folder = (CamelFolder *)o;
 	int i;
+
+	/* may be NULL if we're in the process of being destroyed */
+	if (ml->async_event == NULL)
+		return;
 	
 	d(printf("folder changed event, changes = %p\n", changes));
 	if (changes) {

--- End Message ---


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