From 330cb00874c77afcadc5ee32b9c36f406ee6f57e Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 19 May 2003 15:12:12 +0000 Subject: ** See bug #43234 2003-05-20 Not Zed ** See bug #43234 * mail-display.c (mail_display_set_message): if we've been destroyed, noop. svn path=/trunk/; revision=21247 --- mail/mail-display.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail/mail-display.c') diff --git a/mail/mail-display.c b/mail/mail-display.c index 79f0aea10d..c85d2c952c 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -49,6 +49,7 @@ #include #include #include + #include #include #include @@ -1964,7 +1965,8 @@ mail_display_set_message (MailDisplay *md, CamelMedium *medium, CamelFolder *fol /* For the moment, we deal only with CamelMimeMessage, but in * the future, we should be able to deal with any medium. */ - if (medium && !CAMEL_IS_MIME_MESSAGE (medium)) + if (md->destroyed + || (medium && !CAMEL_IS_MIME_MESSAGE (medium))) return; /* Clean up from previous message. */ @@ -2076,6 +2078,7 @@ mail_display_destroy (GtkObject *object) g_object_unref (mail_display->html); mail_display->html = NULL; } + if (mail_display->current_message) { camel_object_unref (mail_display->current_message); -- cgit v1.2.3