jpegdec: fix peer_caps leak

https://bugzilla.gnome.org/show_bug.cgi?id=666688
This commit is contained in:
Nicola Murino 2011-12-21 20:50:21 +01:00 committed by Thiago Santos
parent 89521166b2
commit 7202d37c9d

View 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));