summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2017-06-04 00:25:09 +0200
committerMichael Niedermayer <[email protected]>2017-06-04 00:25:09 +0200
commit98256595fae197fa9dcdb19e72b138ef05a21bea (patch)
tree4b191eb88f81d1a51cc5d511905604f0854d36e1
parent9221445fa001093307864a53f91c1172c239de18 (diff)
avcodec/tiff: Clear deinvert_buf_size on deallocation
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavcodec/tiff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index b96caeb8ce..69e8d1683a 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -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;