Browse code

avfilter/vf_kerndeint: use av_freep(), avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2014/12/13 21:54:16
Showing 1 changed files
... ...
@@ -63,7 +63,7 @@ static av_cold void uninit(AVFilterContext *ctx)
63 63
 {
64 64
     KerndeintContext *kerndeint = ctx->priv;
65 65
 
66
-    av_free(kerndeint->tmp_data[0]);
66
+    av_freep(&kerndeint->tmp_data[0]);
67 67
 }
68 68
 
69 69
 static int query_formats(AVFilterContext *ctx)