pngparse: fix a GstCaps object leak
authorRoman Donchenko <roman.donchenko@itseez.com>
Wed, 8 Jul 2015 14:08:56 +0000 (17:08 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 8 Jul 2015 16:26:59 +0000 (17:26 +0100)
https://bugzilla.gnome.org//show_bug.cgi?id=752127

gst/videoparsers/gstpngparse.c

index d266bd3..c50efb5 100644 (file)
@@ -221,6 +221,8 @@ gst_png_parse_handle_frame (GstBaseParse * parse,
           } else {
             GST_WARNING_OBJECT (pngparse, "No framerate set");
           }
+
+          gst_caps_unref (sink_caps);
         }
 
         if (!gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (parse), caps))