mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
b6b239ceaa
commit
2609c7b452
1 changed files with 3 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue