]> git.notmuchmail.org Git - notmuch/blobdiff - util/gmime-extra.c
NEWS for 0.29.3
[notmuch] / util / gmime-extra.c
index 7562d9062a20ab1b1a2a9c917c3d4e9b56afe7f5..d1bb1d47ea72930d756c0b89ee9fe5e1ec731530 100644 (file)
@@ -27,7 +27,9 @@ _gzfile_maybe_filter (GMimeStream *file_stream) {
            return NULL;
 
        /* ignore filter id */
-       (void)g_mime_stream_filter_add ((GMimeStreamFilter *)gzstream, gzfilter);
+       (void) g_mime_stream_filter_add ((GMimeStreamFilter *) gzstream, gzfilter);
+       g_object_unref (gzfilter);
+       g_object_unref (file_stream);
        return gzstream;
     } else {
        return file_stream;