Return missing g_object_ref call in camel-mime-parser
authorMilan Crha <mcrha@redhat.com>
Wed, 26 May 2010 13:52:26 +0000 (15:52 +0200)
committerMilan Crha <mcrha@redhat.com>
Wed, 26 May 2010 13:52:26 +0000 (15:52 +0200)
camel/camel-mime-parser.c

index 6d8bc7e..7994173 100644 (file)
@@ -256,6 +256,7 @@ camel_mime_parser_filter_add(CamelMimeParser *m, CamelMimeFilter *mf)
        if (s->filterid == -1)
                s->filterid++;
        new->next = NULL;
+       g_object_ref (G_OBJECT (mf));
 
        /* yes, this is correct, since 'next' is the first element of the struct */
        f = (struct _header_scan_filter *)&s->filters;