diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c index 3d83995bb4..ab6a0776d3 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: