From 5439fc9a0cd2ccd1952152a56f11c48cf93a7f1a Mon Sep 17 00:00:00 2001 From: Vineeth T M Date: Wed, 8 Jul 2015 20:31:42 +0900 Subject: [PATCH] avidemux: fix event leak when seek fails in avidemux, event is not being freed. https://bugzilla.gnome.org/show_bug.cgi?id=752117 --- gst/avi/gstavidemux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index f1797e144c..f2bebafd09 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -5756,8 +5756,10 @@ gst_avi_demux_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) GST_OBJECT_UNLOCK (avi); /* calculate and perform seek */ - if (!avi_demux_handle_seek_push (avi, avi->sinkpad, event)) + if (!avi_demux_handle_seek_push (avi, avi->sinkpad, event)) { + gst_event_unref (event); goto seek_failed; + } gst_event_unref (event); avi->state = GST_AVI_DEMUX_MOVI;