diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-03-31 12:01:21 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-03-31 12:01:21 +0300 |
commit | f4f6d9799ca51aa47ca4c0ed67cfb966890ec463 (patch) | |
tree | 59d68d92ee42b936674d342c5d2852267959a482 | |
parent | 9b8f1cbaa21d3f1bad47d2a7334fcacb1207696e (diff) |
qtdemux: don't leak atom data in case of a wrong fourcc
-rw-r--r-- | gst/qtdemux/qtdemux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 87d458ada..079ae1a25 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c | |||
@@ -2542,7 +2542,6 @@ gst_qtdemux_chain (GstPad * sinkpad, GstBuffer * inbuf) | |||
2542 | qtdemux_parse_tree (demux); | 2542 | qtdemux_parse_tree (demux); |
2543 | 2543 | ||
2544 | g_node_destroy (demux->moov_node); | 2544 | g_node_destroy (demux->moov_node); |
2545 | g_free (data); | ||
2546 | demux->moov_node = NULL; | 2545 | demux->moov_node = NULL; |
2547 | } else { | 2546 | } else { |
2548 | GST_WARNING_OBJECT (demux, | 2547 | GST_WARNING_OBJECT (demux, |
@@ -2550,6 +2549,7 @@ gst_qtdemux_chain (GstPad * sinkpad, GstBuffer * inbuf) | |||
2550 | GST_FOURCC_ARGS (fourcc)); | 2549 | GST_FOURCC_ARGS (fourcc)); |
2551 | /* Let's jump that one and go back to initial state */ | 2550 | /* Let's jump that one and go back to initial state */ |
2552 | } | 2551 | } |
2552 | g_free (data); | ||
2553 | 2553 | ||
2554 | GST_DEBUG_OBJECT (demux, "Finished parsing the header"); | 2554 | GST_DEBUG_OBJECT (demux, "Finished parsing the header"); |
2555 | if (demux->mdatbuffer && demux->n_streams) { | 2555 | if (demux->mdatbuffer && demux->n_streams) { |