Browse Source

avcodec/tiff: Clear deinvert_buf_size on deallocation

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.4
Michael Niedermayer 8 years ago
parent
commit
98256595fa
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/tiff.c

+ 1
- 0
libavcodec/tiff.c View File

@@ -1411,6 +1411,7 @@ static av_cold int tiff_end(AVCodecContext *avctx)

ff_lzw_decode_close(&s->lzw);
av_freep(&s->deinvert_buf);
s->deinvert_buf_size = 0;
av_freep(&s->fax_buffer);
s->fax_buffer_size = 0;
return 0;


Loading…
Cancel
Save