qtdemux: Fix leak of palette_data in error cases

CID #1212151
This commit is contained in:
Edward Hervey 2014-05-12 16:56:35 +02:00
parent 112d948b7e
commit 420661bd95

View file

@ -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 ();