diff options
author | Ognyan Tonchev <ognyan@axis.com> | 2014-09-17 12:17:53 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-09-19 09:37:46 +0300 |
commit | 464cc52d6889688c6cabf56dad18622abc38b2bf (patch) | |
tree | bdaba7e134e3ff95939b93b3f3dd869c8241ef51 | |
parent | fdcdcbafd2cc5614689fe78f0c2071820d45d40b (diff) | |
download | gstreamer-plugins-base-464cc52d6889688c6cabf56dad18622abc38b2bf.tar.gz |
audiodecoder: Don't leak events
https://bugzilla.gnome.org/show_bug.cgi?id=736788
-rw-r--r-- | gst-libs/gst/audio/gstaudiodecoder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 19a03b009..985b51414 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -2007,8 +2007,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; } |