diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-05-11 17:59:54 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-07-25 13:57:00 +0200 |
commit | b4cbf30a297f611229ef67440b3121ecf72c34bc (patch) | |
tree | 85c996f6960b3e929943ef0ae91521feeb610daf | |
parent | 9ac5e646e0f3f6bd9ba8183fff720c1304d50512 (diff) |
Set subband and l_h pointers to NULL in free_buffers()
-rw-r--r-- | libavcodec/cfhd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index b03dd38d0a..69c17b2ecc 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -147,8 +147,15 @@ static void free_buffers(AVCodecContext *avctx) unsigned i; for (i = 0; i < FF_ARRAY_ELEMS(s->plane); i++) { + unsigned j; av_freep(&s->plane[i].idwt_buf); av_freep(&s->plane[i].idwt_tmp); + + for (j = 0; j < FF_ARRAY_ELEMS(s->plane[i].subband); j++) + s->plane[i].subband[j] = NULL; + + for (j = 0; j < FF_ARRAY_ELEMS(s->plane[i].l_h); j++) + s->plane[i].l_h[j] = NULL; } s->a_height = 0; s->a_width = 0; |