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 1221ffa..e5b2ea7 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;
     }
 }