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:
parent
792a5004a1
commit
498396f80c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue