mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
plugins/elements/gstinputselector.c: Don't leak event on pads that are not linked. Fixes #512826.
Original commit message from CVS: * plugins/elements/gstinputselector.c: (gst_selector_pad_event): Don't leak event on pads that are not linked. Fixes #512826.
This commit is contained in:
parent
c9f97beda7
commit
2495420116
1 changed files with 2 additions and 0 deletions
|
@ -312,6 +312,8 @@ gst_selector_pad_event (GstPad * pad, GstEvent * event)
|
||||||
}
|
}
|
||||||
if (forward)
|
if (forward)
|
||||||
res = gst_pad_push_event (sel->srcpad, event);
|
res = gst_pad_push_event (sel->srcpad, event);
|
||||||
|
else
|
||||||
|
gst_event_unref (event);
|
||||||
|
|
||||||
gst_object_unref (sel);
|
gst_object_unref (sel);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue