Browse Source

ffprobe: fix NULL pointer dereference in writer_close()

Fix crash.
tags/n0.10
Stefano Sabatini 14 years ago
parent
commit
49c207b820
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      ffprobe.c

+ 4
- 2
ffprobe.c View File

@@ -178,9 +178,11 @@ static const AVClass writer_class = {

static void writer_close(WriterContext **wctx)
{
if (*wctx && (*wctx)->writer->uninit)
(*wctx)->writer->uninit(*wctx);
if (!*wctx)
return;

if ((*wctx)->writer->uninit)
(*wctx)->writer->uninit(*wctx);
av_freep(&((*wctx)->priv));
av_freep(wctx);
}


Loading…
Cancel
Save