Commit 420661bd authored by Edward Hervey's avatar Edward Hervey

qtdemux: Fix leak of palette_data in error cases

CID #1212151
parent 112d948b
......@@ -7490,8 +7490,10 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
stream->caps =
qtdemux_video_caps (qtdemux, stream, fourcc, stsd_data, &codec);
if (G_UNLIKELY (!stream->caps))
if (G_UNLIKELY (!stream->caps)) {
g_free (palette_data);
goto unknown_stream;
}
if (codec) {
list = gst_tag_list_new_empty ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment