oggdemux: fix event leaks
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 21 Apr 2015 13:27:57 +0000 (15:27 +0200)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 23 Apr 2015 10:02:45 +0000 (11:02 +0100)
commitd31472fde750d3a592ef2232bfafe97dc34a9465
tree451cef6d61ef0086db949b924b102f93c5513b42
parentdfb0e3420696ca7fe8e4e172c0aa522dc95d391f
oggdemux: fix event leaks

gst_event_replace() takes its own reference on the event so we should drop
ours after creating and storing an event using it.

This fix leaks which can be reproduced using the
validate.http.media_check.vorbis_theora_1_ogg scenario.

https://bugzilla.gnome.org/show_bug.cgi?id=748247
ext/ogg/gstoggdemux.c