avcodec/ylc: do not leak memory at uninit

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/244/head
Paul B Mahol 8 years ago
parent 89d4d7d759
commit 341d3ee441
  1. 4
      libavcodec/ylc.c

@ -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;
}

Loading…
Cancel
Save