From 9cea5475976b74f3a0a937c578145a04161d7785 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 14 Mar 2014 14:19:39 +0100 Subject: Missing attachment button for attachments of a known type If there was a known formatter for the attachment's mime type, the attachment content was shown inline, without the attachment button, instead of it being shown collapsed and with the corresponding button. All that caused by a variable overwrite and a related memory leak. --- em-format/e-mail-formatter-attachment.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/em-format/e-mail-formatter-attachment.c b/em-format/e-mail-formatter-attachment.c index c076d80085..0a921571a6 100644 --- a/em-format/e-mail-formatter-attachment.c +++ b/em-format/e-mail-formatter-attachment.c @@ -332,8 +332,6 @@ emfe_attachment_format (EMailFormatterExtension *extension, size = g_memory_output_stream_get_data_size ( G_MEMORY_OUTPUT_STREAM (content_stream)); - buffer = g_string_sized_new (size); - g_string_append_printf ( buffer, "" -- cgit v1.2.3