matroskademux: Fix memory leak
authorOgnyan Tonchev <ognyan@axis.com>
Wed, 2 Oct 2013 13:56:53 +0000 (15:56 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Wed, 2 Oct 2013 14:17:33 +0000 (16:17 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=709266

gst/matroska/matroska-demux.c

index a6dbf5df0fcbbf20519e90e7ca88ccbcaafc30b8..90bf6df1273c1b23a48fb3f08deb7f3e645ce849 100644 (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;
     }