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; }