From 032e0645162db69357385f3eb01998262a4f5c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 21 Dec 2007 22:26:47 +0000 Subject: [PATCH] gst/playback/gststreamselector.c: Don't leak event. Original commit message from CVS: * gst/playback/gststreamselector.c: (gst_selector_pad_event): Don't leak event. --- ChangeLog | 5 +++++ gst/playback/gststreamselector.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index a76d099313..6226377447 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-21 Tim-Philipp Müller + + * gst/playback/gststreamselector.c: (gst_selector_pad_event): + Don't leak event. + 2007-12-20 Thijs Vermeir * gst-libs/gst/riff/riff-read.c: diff --git a/gst/playback/gststreamselector.c b/gst/playback/gststreamselector.c index c2db8e2e62..86ced9f825 100644 --- a/gst/playback/gststreamselector.c +++ b/gst/playback/gststreamselector.c @@ -237,6 +237,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);