mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
auparse: Fix event memory leak
Free the event after being handled to prevent memory leak. https://bugzilla.gnome.org/show_bug.cgi?id=756799
This commit is contained in:
parent
d238f080fb
commit
0cefb6722b
1 changed files with 1 additions and 0 deletions
|
@ -756,6 +756,7 @@ gst_au_parse_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_SEEK:
|
case GST_EVENT_SEEK:
|
||||||
ret = gst_au_parse_handle_seek (auparse, event);
|
ret = gst_au_parse_handle_seek (auparse, event);
|
||||||
|
gst_event_unref (event);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ret = gst_pad_event_default (pad, parent, event);
|
ret = gst_pad_event_default (pad, parent, event);
|
||||||
|
|
Loading…
Reference in a new issue