Commit 3bb208b2 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

avcodec: fix memory leak of rec->pict.data[1]

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b0c7b9c8
......@@ -299,11 +299,8 @@ static subpicture_t *ConvertSubtitle(decoder_t *dec, AVSubtitle *ffsub, mtime_t
*region_next = region;
region_next = &region->p_next;
}
/* Free AVSubtitleRect */
avpicture_free(&rec->pict);
av_free(rec);
}
av_free(ffsub->rects);
avsubtitle_free(ffsub);
return spu;
}
......
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