Commit 588e2e33 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264: Fix memleak of a53_caption

Fixes Ticket5111
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 4e5db871
...@@ -1927,6 +1927,9 @@ av_cold void ff_h264_free_context(H264Context *h) ...@@ -1927,6 +1927,9 @@ av_cold void ff_h264_free_context(H264Context *h)
av_freep(&h->slice_ctx); av_freep(&h->slice_ctx);
h->nb_slice_ctx = 0; h->nb_slice_ctx = 0;
h->a53_caption_size = 0;
av_freep(&h->a53_caption);
for (i = 0; i < MAX_SPS_COUNT; i++) for (i = 0; i < MAX_SPS_COUNT; i++)
av_freep(h->sps_buffers + i); av_freep(h->sps_buffers + i);
......
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