audiodecoder: Don't leak events

https://bugzilla.gnome.org/show_bug.cgi?id=736788
This commit is contained in:
Ognyan Tonchev 2014-09-17 12:17:53 +02:00 committed by Sebastian Dröge
parent add8f02703
commit c674a0aa64

View file

@ -1969,8 +1969,10 @@ _flush_events (GstPad * pad, GList * events)
gst_event_unref (tmp->data); gst_event_unref (tmp->data);
} else { } else {
gst_pad_store_sticky_event (pad, GST_EVENT_CAST (tmp->data)); gst_pad_store_sticky_event (pad, GST_EVENT_CAST (tmp->data));
gst_event_unref (tmp->data);
} }
} }
g_list_free (events);
return NULL; return NULL;
} }