From dc1d13533cb4762c7aa4b6c93b3d8801e2f4919e Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 21 Apr 2000 05:01:35 +0000 Subject: ref the message we display, since we're going to unref it when we remove * mail-display.c (mail_display_set_message): ref the message we display, since we're going to unref it when we remove it. Fixes a bug that showed up with the new camel code, but it's not obvious if it's due to a bug or a feature in the new code. svn path=/trunk/; revision=2541 --- mail/ChangeLog | 7 +++++++ mail/mail-display.c | 1 + 2 files changed, 8 insertions(+) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index d1f20d8c51..2e4e787518 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2000-04-21 Dan Winship + + * mail-display.c (mail_display_set_message): ref the message we + display, since we're going to unref it when we remove it. Fixes a + bug that showed up with the new camel code, but it's not obvious + if it's due to a bug or a feature in the new code. + 2000-04-20 NotZed * Makefile.am (evolution_mail_LDADD): Add libibex.la to link. diff --git a/mail/mail-display.c b/mail/mail-display.c index b365df7232..5a3b42a319 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -253,6 +253,7 @@ mail_display_set_message (MailDisplay *mail_display, gtk_object_unref (GTK_OBJECT (mail_display->current_message)); mail_display->current_message = CAMEL_MIME_MESSAGE (medium); + gtk_object_ref (GTK_OBJECT (medium)); headers_stream = gtk_html_begin (mail_display->headers_html_widget, ""); body_stream = gtk_html_begin (mail_display->body_html_widget, ""); -- cgit v1.2.3