matroskademux: Fix memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=709266
This commit is contained in:
Ognyan Tonchev 2013-10-02 15:56:53 +02:00 committed by Sebastian Dröge
parent e779b6587b
commit 30f62a2eec

View file

@ -3468,7 +3468,7 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
segment_event = gst_event_new_segment (segment);
if (demux->segment_seqnum)
gst_event_set_seqnum (segment_event, demux->segment_seqnum);
gst_matroska_demux_send_event (demux, gst_event_new_segment (segment));
gst_matroska_demux_send_event (demux, segment_event);
demux->need_segment = FALSE;
demux->segment_seqnum = 0;
}