diff options
Diffstat (limited to 'em-format/e-mail-formatter-error.c')
-rw-r--r-- | em-format/e-mail-formatter-error.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/em-format/e-mail-formatter-error.c b/em-format/e-mail-formatter-error.c index a329abfffd..8669c11ced 100644 --- a/em-format/e-mail-formatter-error.c +++ b/em-format/e-mail-formatter-error.c @@ -51,10 +51,12 @@ emfe_error_format (EMailFormatterExtension *extension, { CamelStream *filtered_stream; CamelMimeFilter *filter; + CamelMimePart *mime_part; CamelDataWrapper *dw; gchar *html; - dw = camel_medium_get_content (CAMEL_MEDIUM (part->part)); + mime_part = e_mail_part_ref_mime_part (part); + dw = camel_medium_get_content (CAMEL_MEDIUM (mime_part)); html = g_strdup_printf ( "<div class=\"part-container\" style=\"" @@ -100,6 +102,8 @@ emfe_error_format (EMailFormatterExtension *extension, "</div>", cancellable, NULL); + g_object_unref (mime_part); + return TRUE; } |