baseparse: don't leak event

In the unlikely case where the subclass set the event function to NULL, don't
leak the event.
This commit is contained in:
Wim Taymans 2012-02-15 13:15:55 +01:00
parent b6b239ceaa
commit 2609c7b452

View file

@ -896,8 +896,10 @@ gst_base_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
if (bclass->event)
ret = bclass->event (parse, event);
else
else {
gst_event_unref (event);
ret = FALSE;
}
}
GST_DEBUG_OBJECT (parse, "event handled");