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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-12-13 13:53:53 +01:00
parent 792a5004a1
commit 498396f80c
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ static void free_filter_param(UnsharpFilterParam *fp)
int z;
for (z = 0; z < 2 * fp->steps_y; z++)
av_free(fp->sc[z]);
av_freep(&fp->sc[z]);
}
static av_cold void uninit(AVFilterContext *ctx)