Browse code

avfilter/vf_unsharp: 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:53:53
Showing 1 changed files
... ...
@@ -215,7 +215,7 @@ static void free_filter_param(UnsharpFilterParam *fp)
215 215
     int z;
216 216
 
217 217
     for (z = 0; z < 2 * fp->steps_y; z++)
218
-        av_free(fp->sc[z]);
218
+        av_freep(&fp->sc[z]);
219 219
 }
220 220
 
221 221
 static av_cold void uninit(AVFilterContext *ctx)