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:
Vineeth TM 2015-10-19 17:38:32 +09:00 committed by Tim-Philipp Müller
parent d238f080fb
commit 0cefb6722b

View file

@ -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);