diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-05-14 19:45:41 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2012-05-15 19:05:39 +0200 |
commit | bc00da27010ed9e5dbe47e5b6fae3dcddb999d78 (patch) | |
tree | 8c0af1a4d713d29270ede8bbbde2d81d2c371392 /libavcodec/indeo3.c | |
parent | 81064a8045028838fd32d18490034c207c8ecc06 (diff) | |
download | ffmpeg-bc00da27010ed9e5dbe47e5b6fae3dcddb999d78.tar.gz |
indeo3: when freeing buffers, set pointers referencing them to NULL as well
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r-- | libavcodec/indeo3.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index 1221ffab18..e5b2ea7ef0 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -209,6 +209,7 @@ static av_cold void free_frame_buffers(Indeo3DecodeContext *ctx) for (p = 0; p < 3; p++) { av_freep(&ctx->planes[p].buffers[0]); av_freep(&ctx->planes[p].buffers[1]); + ctx->planes[p].pixels[0] = ctx->planes[p].pixels[1] = 0; } } |