projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf5bdbd
)
avfilter/vf_lensfun: use av_freep
author
Paul B Mahol
<onemda@gmail.com>
Thu, 18 Oct 2018 09:30:11 +0000
(11:30 +0200)
committer
Paul B Mahol
<onemda@gmail.com>
Thu, 18 Oct 2018 09:30:11 +0000
(11:30 +0200)
libavfilter/vf_lensfun.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_lensfun.c
b/libavfilter/vf_lensfun.c
index
fd14210
..
5cc9802
100644
(file)
--- 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[] = {