[FFmpeg-cvslog] avfilter/vf_gblur: use av_freep()

Paul B Mahol git at videolan.org
Thu Feb 10 10:22:55 EET 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Feb 10 08:44:18 2022 +0100| [a0ede3cb564cf1cb10c8cee0b39c24a8dde15725] | committer: Paul B Mahol

avfilter/vf_gblur: use av_freep()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a0ede3cb564cf1cb10c8cee0b39c24a8dde15725
---

 libavfilter/vf_gblur.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavfilter/vf_gblur.c b/libavfilter/vf_gblur.c
index 9a74686fba..a775f8cbf8 100644
--- a/libavfilter/vf_gblur.c
+++ b/libavfilter/vf_gblur.c
@@ -384,8 +384,7 @@ static av_cold void uninit(AVFilterContext *ctx)
     GBlurContext *s = ctx->priv;
 
     av_freep(&s->buffer);
-    if (s->localbuf)
-        av_free(s->localbuf);
+    av_freep(&s->localbuf);
 }
 
 static const AVFilterPad gblur_inputs[] = {



More information about the ffmpeg-cvslog mailing list