Browse Source

indeo3: when freeing buffers, set pointers referencing them to NULL as well

tags/n0.11
Kostya Shishkov 13 years ago
parent
commit
bc00da2701
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/indeo3.c

+ 1
- 0
libavcodec/indeo3.c View 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;
}
}



Loading…
Cancel
Save