summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ffprobe.c b/ffprobe.c
index ee3c899ce8..77c343a96a 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -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);
}