mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
xvidenc: do not leak peer pad reference
This commit is contained in:
parent
5ebff49162
commit
e1d9574a9d
1 changed files with 2 additions and 0 deletions
|
@ -835,6 +835,8 @@ gst_xvidenc_getcaps (GstPad * pad)
|
|||
|
||||
caps = gst_caps_intersect (peercaps, templcaps);
|
||||
gst_caps_unref (peercaps);
|
||||
gst_object_unref (peer);
|
||||
peer = NULL;
|
||||
} else {
|
||||
caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue