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
This commit is contained in:
parent
ed079b9e74
commit
8283337e73
@ -8573,7 +8573,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||||||
"found, assuming preview image or something; skipping track",
|
"found, assuming preview image or something; skipping track",
|
||||||
stream->duration, stream->timescale, qtdemux->duration,
|
stream->duration, stream->timescale, qtdemux->duration,
|
||||||
qtdemux->timescale);
|
qtdemux->timescale);
|
||||||
g_free (stream);
|
if (new_stream)
|
||||||
|
gst_qtdemux_stream_free (qtdemux, stream);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -8651,7 +8652,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||||||
if (stsd_len < 24) {
|
if (stsd_len < 24) {
|
||||||
/* .. but skip stream with empty stsd produced by some Vivotek cameras */
|
/* .. but skip stream with empty stsd produced by some Vivotek cameras */
|
||||||
if (stream->subtype == FOURCC_vivo) {
|
if (stream->subtype == FOURCC_vivo) {
|
||||||
g_free (stream);
|
if (new_stream)
|
||||||
|
gst_qtdemux_stream_free (qtdemux, stream);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
goto corrupt_file;
|
goto corrupt_file;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user