aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-14 15:56:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-14 15:56:32 +0100
commit6de2f027cd60c99e1628baf5bb4aeea4b5008217 (patch)
treeed61c539db9501d47bd4908382a2c39d5cb7d821
parenteb055295bda0d1bcf6aba55db1a31c11fc5db1bd (diff)
downloadffmpeg-6de2f027cd60c99e1628baf5bb4aeea4b5008217.tar.gz
avfilter/vf_dctdnoiz: use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vf_dctdnoiz.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/vf_dctdnoiz.c b/libavfilter/vf_dctdnoiz.c
index a9017b1f1c..5cce9cb0e9 100644
--- a/libavfilter/vf_dctdnoiz.c
+++ b/libavfilter/vf_dctdnoiz.c
@@ -732,14 +732,14 @@ static av_cold void uninit(AVFilterContext *ctx)
int i;
DCTdnoizContext *s = ctx->priv;
- av_free(s->weights);
+ av_freep(&s->weights);
for (i = 0; i < 2; i++) {
- av_free(s->cbuf[i][0]);
- av_free(s->cbuf[i][1]);
- av_free(s->cbuf[i][2]);
+ av_freep(&s->cbuf[i][0]);
+ av_freep(&s->cbuf[i][1]);
+ av_freep(&s->cbuf[i][2]);
}
for (i = 0; i < s->nb_threads; i++) {
- av_free(s->slices[i]);
+ av_freep(&s->slices[i]);
av_expr_free(s->expr[i]);
}
}