summaryrefslogtreecommitdiff
path: root/gst/isomp4/qtdemux.c
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-10-14 09:29:50 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-10-17 11:03:13 +0300
commit01e67e826c34a307bd14395b3240bc97209c9c12 (patch)
treed5fbb6f66aa431eea87c59bfb8e273a506110080 /gst/isomp4/qtdemux.c
parent1b7fb6d26a3f4929f5bf075dd3b15c0bc5dcf816 (diff)
downloadgstreamer-plugins-good-01e67e826c34a307bd14395b3240bc97209c9c12.tar.gz
qtdemux: Fix taglist memory leak
Free the stream and its sub items instead of just the stream https://bugzilla.gnome.org/show_bug.cgi?id=756544
Diffstat (limited to 'gst/isomp4/qtdemux.c')
-rw-r--r--gst/isomp4/qtdemux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index 1de62dfc3..0425d9491 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -8547,7 +8547,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
"found, assuming preview image or something; skipping track",
stream->duration, stream->timescale, qtdemux->duration,
qtdemux->timescale);
- g_free (stream);
+ if (new_stream)
+ gst_qtdemux_stream_free (qtdemux, stream);
return TRUE;
}
}
@@ -8625,7 +8626,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
if (stsd_len < 24) {
/* .. but skip stream with empty stsd produced by some Vivotek cameras */
if (stream->subtype == FOURCC_vivo) {
- g_free (stream);
+ if (new_stream)
+ gst_qtdemux_stream_free (qtdemux, stream);
return TRUE;
} else {
goto corrupt_file;