]> git.sesse.net Git - ffmpeg/commitdiff
indeo3: when freeing buffers, set pointers referencing them to NULL as well
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 14 May 2012 17:45:41 +0000 (19:45 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 15 May 2012 17:05:39 +0000 (19:05 +0200)
libavcodec/indeo3.c

index 1221ffab181bce6ad0cff2055bbe5085cd1e238e..e5b2ea7ef0498d7e6b7f40765196c311b4bd6bda 100644 (file)
@@ -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;
     }
 }