ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Thu Oct 18 11:30:11 
2018 +0200| [0ce7005d34e2d5609d8fd5db28adec4164814477] | committer: Paul B Mahol

avfilter/vf_lensfun: use av_freep

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

 libavfilter/vf_lensfun.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavfilter/vf_lensfun.c b/libavfilter/vf_lensfun.c
index fd14210add..5cc98020d1 100644
--- a/libavfilter/vf_lensfun.c
+++ b/libavfilter/vf_lensfun.c
@@ -510,10 +510,8 @@ static av_cold void uninit(AVFilterContext *ctx)
         lf_lens_destroy(lensfun->lens);
     if (lensfun->modifier)
         lf_modifier_destroy(lensfun->modifier);
-    if (lensfun->distortion_coords)
-        av_free(lensfun->distortion_coords);
-    if (lensfun->interpolation)
-        av_free(lensfun->interpolation);
+    av_freep(&lensfun->distortion_coords);
+    av_freep(&lensfun->interpolation);
 }
 
 static const AVFilterPad lensfun_inputs[] = {

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to