Commit 341d3ee4 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/ylc: do not leak memory at uninit

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 89d4d7d7
......@@ -455,6 +455,10 @@ static av_cold int decode_end(AVCodecContext *avctx)
ff_free_vlc(&s->vlc[1]);
ff_free_vlc(&s->vlc[2]);
ff_free_vlc(&s->vlc[3]);
av_freep(&s->table_bits);
s->table_bits_size = 0;
av_freep(&s->bitstream_bits);
s->bitstream_bits_size = 0;
return 0;
}
......
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