jpegdec: fix peer_caps leak
https://bugzilla.gnome.org/show_bug.cgi?id=666688
This commit is contained in:
parent
89521166b2
commit
7202d37c9d
@ -808,7 +808,7 @@ gst_jpeg_dec_getcaps (GstPad * pad)
|
|||||||
templ_caps = gst_pad_get_pad_template_caps (pad);
|
templ_caps = gst_pad_get_pad_template_caps (pad);
|
||||||
caps = gst_caps_intersect_full (peer_caps, templ_caps,
|
caps = gst_caps_intersect_full (peer_caps, templ_caps,
|
||||||
GST_CAPS_INTERSECT_FIRST);
|
GST_CAPS_INTERSECT_FIRST);
|
||||||
|
gst_caps_unref (peer_caps);
|
||||||
gst_object_unref (peer);
|
gst_object_unref (peer);
|
||||||
} else {
|
} else {
|
||||||
caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad));
|
caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user