summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-10-18 11:30:11 +0200
committerPaul B Mahol <onemda@gmail.com>2018-10-18 11:30:11 +0200
commit0ce7005d34e2d5609d8fd5db28adec4164814477 (patch)
tree8387f98b8fa38622751d3ce9e34be14dbaca552e /libavfilter
parentbf5bdbdb926742235e2037389115e9308223e153 (diff)
avfilter/vf_lensfun: use av_freep
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_lensfun.c6
1 files 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[] = {