mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtdemux: don't leak atom data in case of a wrong fourcc
This commit is contained in:
parent
9b8f1cbaa2
commit
f4f6d9799c
1 changed files with 1 additions and 1 deletions
|
@ -2542,7 +2542,6 @@ gst_qtdemux_chain (GstPad * sinkpad, GstBuffer * inbuf)
|
||||||
qtdemux_parse_tree (demux);
|
qtdemux_parse_tree (demux);
|
||||||
|
|
||||||
g_node_destroy (demux->moov_node);
|
g_node_destroy (demux->moov_node);
|
||||||
g_free (data);
|
|
||||||
demux->moov_node = NULL;
|
demux->moov_node = NULL;
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING_OBJECT (demux,
|
GST_WARNING_OBJECT (demux,
|
||||||
|
@ -2550,6 +2549,7 @@ gst_qtdemux_chain (GstPad * sinkpad, GstBuffer * inbuf)
|
||||||
GST_FOURCC_ARGS (fourcc));
|
GST_FOURCC_ARGS (fourcc));
|
||||||
/* Let's jump that one and go back to initial state */
|
/* Let's jump that one and go back to initial state */
|
||||||
}
|
}
|
||||||
|
g_free (data);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (demux, "Finished parsing the header");
|
GST_DEBUG_OBJECT (demux, "Finished parsing the header");
|
||||||
if (demux->mdatbuffer && demux->n_streams) {
|
if (demux->mdatbuffer && demux->n_streams) {
|
||||||
|
|
Loading…
Reference in a new issue