diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2008-02-01 17:08:18 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-02-01 17:08:18 +0000 |
commit | a9ae327f9ffbc9d71fe4888067fdc5d2e0f326be (patch) | |
tree | 4e6209c4e332fc4b6a706402e22ef9e5654f33b7 /gst | |
parent | 1bd5b1ddf7b8334157b603f86da09a697f886406 (diff) | |
download | gst-plugins-bad-a9ae327f9ffbc9d71fe4888067fdc5d2e0f326be.tar.gz gst-plugins-bad-a9ae327f9ffbc9d71fe4888067fdc5d2e0f326be.tar.bz2 gst-plugins-bad-a9ae327f9ffbc9d71fe4888067fdc5d2e0f326be.zip |
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.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/selector/gstinputselector.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/selector/gstinputselector.c b/gst/selector/gstinputselector.c index a4d46182..aef4bfc3 100644 --- a/gst/selector/gstinputselector.c +++ b/gst/selector/gstinputselector.c @@ -312,6 +312,8 @@ gst_selector_pad_event (GstPad * pad, GstEvent * event) } if (forward) res = gst_pad_push_event (sel->srcpad, event); + else + gst_event_unref (event); gst_object_unref (sel); |