From 5268a864f28f3c0a8723827f178f5441fd9edac5 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 5 Oct 2010 14:48:27 +0200 Subject: Bug #500591 - Crash when viewing a large message --- mail/em-format-html-display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index d3cb27a65c..e2f6e90a92 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -493,7 +493,7 @@ efhd_format_optional (EMFormat *emf, info->snoop_mime_type = "text/plain"; info->attachment = e_attachment_new (); e_attachment_set_mime_part (info->attachment, info->puri.part); - info->mstream = (CamelStreamMem *) mstream; + info->mstream = (CamelStreamMem *) g_object_ref (mstream); if (emf->valid) { info->sign = emf->valid->sign.status; info->encrypt = emf->valid->encrypt.status; -- cgit