From a9ae327f9ffbc9d71fe4888067fdc5d2e0f326be Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 1 Feb 2008 17:08:18 +0000 Subject: 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. --- ChangeLog | 5 +++++ gst/selector/gstinputselector.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9bf1b132..1715cae7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-01 Wim Taymans + + * 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 * configure.ac: 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); -- cgit v1.2.1