avcodec/h264: Fix memleak of a53_caption

Fixes Ticket5111

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-02-13 02:06:22 +01:00
parent 4e5db87174
commit 588e2e3387
1 changed files with 3 additions and 0 deletions

View File

@ -1927,6 +1927,9 @@ av_cold void ff_h264_free_context(H264Context *h)
av_freep(&h->slice_ctx);
h->nb_slice_ctx = 0;
h->a53_caption_size = 0;
av_freep(&h->a53_caption);
for (i = 0; i < MAX_SPS_COUNT; i++)
av_freep(h->sps_buffers + i);