diff options
author | Vineeth T M <vineeth.tm@samsung.com> | 2015-07-08 14:31:42 +0300 |
---|---|---|
committer | Luis de Bethencourt <luis@debethencourt.com> | 2015-07-08 14:57:43 +0300 |
commit | 5439fc9a0cd2ccd1952152a56f11c48cf93a7f1a (patch) | |
tree | abddddb170846485d74414738db7433c12ddc0c8 | |
parent | 8a0dbff3f40ca6e84f8e04734090e5a6355ee351 (diff) |
avidemux: fix event leak
when seek fails in avidemux, event is not being freed.
https://bugzilla.gnome.org/show_bug.cgi?id=752117
-rw-r--r-- | gst/avi/gstavidemux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index f1797e144..f2bebafd0 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; |