summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-03-31 08:57:36 (GMT)
committerStefan Kost <ensonic@users.sf.net>2009-03-31 08:57:36 (GMT)
commit9b8f1cbaa21d3f1bad47d2a7334fcacb1207696e (patch)
treedcbee74f354dda8afb32f1387abe9ef4cdcbbd26
parentba2c10196354cca88955b8020c0c511109949a05 (diff)
matroska: don't leak read data in demuxer
-rw-r--r--gst/matroska/matroska-demux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 50011cf..118a3d6 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -1322,6 +1322,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux)
break;
if (datalen != 4) {
+ g_free (data);
GST_WARNING_OBJECT (demux,
"Invalid TrackVideoColourSpace length %" G_GUINT64_FORMAT,
datalen);
@@ -1332,6 +1333,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux)
GST_DEBUG_OBJECT (demux,
"TrackVideoColourSpace: %" GST_FOURCC_FORMAT,
GST_FOURCC_ARGS (videocontext->fourcc));
+ g_free (data);
break;
}