matroska: don't leak read data in demuxer

This commit is contained in:
Stefan Kost 2009-03-31 11:57:36 +03:00
parent ba2c101963
commit 9b8f1cbaa2

View file

@ -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;
}