From 47a4b74f0788af977a0f039eda58485c00d101f2 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 8 May 2003 17:01:55 +0000 Subject: Make sure that we haven't been destroyed before we start writing to the 2003-05-07 Jeffrey Stedfast * 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. svn path=/trunk/; revision=21132 --- mail/ChangeLog | 6 ++++++ mail/mail-display.c | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 4cefc66794..c4cc81862f 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2003-05-07 Jeffrey Stedfast + + * 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-07 Not Zed ** See bug #42456 diff --git a/mail/mail-display.c b/mail/mail-display.c index 5aa1dd1dff..bf8bc41c47 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -1814,6 +1814,11 @@ mail_display_render (MailDisplay *md, GtkHTML *html, gboolean reset_scroll) 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. */ -- cgit v1.2.3