gst/selector/gstinputselector.c: Don't leak event on pads that are not linked. Fixes #512826.

Original commit message from CVS:
* gst/selector/gstinputselector.c: (gst_selector_pad_event):
Don't leak event on pads that are not linked. Fixes #512826.
This commit is contained in:
Wim Taymans 2008-02-01 17:08:18 +00:00
parent 1bd5b1ddf7
commit a9ae327f9f
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-02-01 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/selector/gstinputselector.c: (gst_selector_pad_event):
Don't leak event on pads that are not linked. Fixes #512826.
2008-02-01 Tim-Philipp Müller <tim at centricular dot net> 2008-02-01 Tim-Philipp Müller <tim at centricular dot net>
* configure.ac: * configure.ac:

View file

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