[evolution-patches] fix for bug #42333



This should fix bug #42333

-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com
? 42170.patch
? 42333.patch
? accounts.xml
? crash.txt
? evolution-mail-account.schemas
? filter-importer.patch
? mail-account-list.h
? mail-account.c
? mail-account.h
? mail-composer-prefs.patch
? mail-config-hig.patch
? message-tree.c
? message-tree.h
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.2716
diff -u -r1.2716 ChangeLog
--- ChangeLog	7 May 2003 00:53:39 -0000	1.2716
+++ ChangeLog	7 May 2003 20:35:25 -0000
@@ -1,3 +1,9 @@
+2003-05-07  Jeffrey Stedfast  <fejj ximian com>
+
+	* mail-display.c (mail_display_render): Make sure that we haven't
+	been destroyed before we start writing to the html engine. Fixes
+	bug #42333.
+
 2003-05-06  Not Zed  <NotZed Ximian com>
 
 	** See bug #42400
Index: mail-display.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-display.c,v
retrieving revision 1.275
diff -u -r1.275 mail-display.c
--- mail-display.c	24 Apr 2003 19:09:04 -0000	1.275
+++ mail-display.c	7 May 2003 20:35:25 -0000
@@ -1814,6 +1814,11 @@
 	g_return_if_fail (IS_MAIL_DISPLAY (md));
 	g_return_if_fail (GTK_IS_HTML (html));
 	
+	if (!md->html) {
+		/* we've been destroyed */
+		return;
+	}
+	
 	html_stream = gtk_html_begin (html);
 	if (!reset_scroll) {
 		/* This is a hack until there's a clean way to do this. */


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