jpegdec: fix peer_caps leak
authorNicola Murino <nicola.murino@gmail.com>
Wed, 21 Dec 2011 19:50:21 +0000 (20:50 +0100)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Mon, 26 Dec 2011 18:34:47 +0000 (15:34 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=666688

ext/jpeg/gstjpegdec.c

index fe5652b..18cf20d 100644 (file)
@@ -808,7 +808,7 @@ gst_jpeg_dec_getcaps (GstPad * pad)
     templ_caps = gst_pad_get_pad_template_caps (pad);
     caps = gst_caps_intersect_full (peer_caps, templ_caps,
         GST_CAPS_INTERSECT_FIRST);
-
+    gst_caps_unref (peer_caps);
     gst_object_unref (peer);
   } else {
     caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad));