From c674a0aa649b3c47fd46bdf85487f8520250c0a3 Mon Sep 17 00:00:00 2001 From: Ognyan Tonchev Date: Wed, 17 Sep 2014 12:17:53 +0200 Subject: [PATCH] audiodecoder: Don't leak events https://bugzilla.gnome.org/show_bug.cgi?id=736788 --- gst-libs/gst/audio/gstaudiodecoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 654f21c1e0..d93f1e1cc1 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -1969,8 +1969,10 @@ _flush_events (GstPad * pad, GList * events) gst_event_unref (tmp->data); } else { gst_pad_store_sticky_event (pad, GST_EVENT_CAST (tmp->data)); + gst_event_unref (tmp->data); } } + g_list_free (events); return NULL; }