From 06885211030714fceda973f5fba948a6032c96c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 8 Apr 2011 15:00:58 +0200 Subject: [PATCH] vorbisdec: Unref events if the parent element disappeared --- ext/vorbis/gstvorbisdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c index 3d83995..ab6a077 100644 --- a/ext/vorbis/gstvorbisdec.c +++ b/ext/vorbis/gstvorbisdec.c @@ -410,8 +410,10 @@ vorbis_dec_src_event (GstPad * pad, GstEvent * event) GstVorbisDec *dec; dec = GST_VORBIS_DEC (gst_pad_get_parent (pad)); - if (G_UNLIKELY (dec == NULL)) + if (G_UNLIKELY (dec == NULL)) { + gst_event_unref (event); return FALSE; + } switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEEK: -- 2.7.4