X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-show.c;h=1954096d9091d43c9cd5cf34a3d856aa635ed3d4;hp=c0ed9c87923dee1a759a85f5b637cd98713c1e60;hb=eafa8c62b33570cf5f239b08a216b03ea8bf8866;hpb=b4cedc782415062f63d29b8f2de89956f2b8803b diff --git a/notmuch-show.c b/notmuch-show.c index c0ed9c87..1954096d 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -318,6 +318,7 @@ show_text_part_content (GMimeObject *part, GMimeStream *stream_out, { GMimeContentType *content_type = g_mime_object_get_content_type (GMIME_OBJECT (part)); GMimeStream *stream_filter = NULL; + GMimeFilter *crlf_filter = NULL; GMimeDataWrapper *wrapper; const char *charset; @@ -329,8 +330,10 @@ show_text_part_content (GMimeObject *part, GMimeStream *stream_out, return; stream_filter = g_mime_stream_filter_new (stream_out); + crlf_filter = g_mime_filter_crlf_new (FALSE, FALSE); g_mime_stream_filter_add(GMIME_STREAM_FILTER (stream_filter), - g_mime_filter_crlf_new (FALSE, FALSE)); + crlf_filter); + g_object_unref (crlf_filter); charset = g_mime_object_get_content_type_parameter (part, "charset"); if (charset) {