summaryrefslogtreecommitdiff
authorStefan Kost <ensonic@users.sf.net>2009-03-31 09:01:21 (GMT)
committer Stefan Kost <ensonic@users.sf.net>2009-03-31 09:01:21 (GMT)
commitf4f6d9799ca51aa47ca4c0ed67cfb966890ec463 (patch) (side-by-side diff)
tree59d68d92ee42b936674d342c5d2852267959a482
parent9b8f1cbaa21d3f1bad47d2a7334fcacb1207696e (diff)
downloadgst-plugins-good-f4f6d9799ca51aa47ca4c0ed67cfb966890ec463.zip
gst-plugins-good-f4f6d9799ca51aa47ca4c0ed67cfb966890ec463.tar.gz
qtdemux: don't leak atom data in case of a wrong fourcc
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--gst/qtdemux/qtdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 87d458a..079ae1a 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -2542,7 +2542,6 @@ gst_qtdemux_chain (GstPad * sinkpad, GstBuffer * inbuf)
qtdemux_parse_tree (demux);
g_node_destroy (demux->moov_node);
- g_free (data);
demux->moov_node = NULL;
} else {
GST_WARNING_OBJECT (demux,
@@ -2550,6 +2549,7 @@ gst_qtdemux_chain (GstPad * sinkpad, GstBuffer * inbuf)
GST_FOURCC_ARGS (fourcc));
/* Let's jump that one and go back to initial state */
}
+ g_free (data);
GST_DEBUG_OBJECT (demux, "Finished parsing the header");
if (demux->mdatbuffer && demux->n_streams) {