mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
jpegdec: fix peer_caps leak
https://bugzilla.gnome.org/show_bug.cgi?id=666688
This commit is contained in:
parent
89521166b2
commit
7202d37c9d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue