avfilter/vf_kerndeint: use av_freep(), avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Dec 2014 12:54:16 +0000 (13:54 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Dec 2014 13:18:30 +0000 (14:18 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_kerndeint.c

index 5130208..ccb8fbd 100644 (file)
@@ -63,7 +63,7 @@ static av_cold void uninit(AVFilterContext *ctx)
 {
     KerndeintContext *kerndeint = ctx->priv;
 
-    av_free(kerndeint->tmp_data[0]);
+    av_freep(&kerndeint->tmp_data[0]);
 }
 
 static int query_formats(AVFilterContext *ctx)