From f43ac027232f6aeb826d7c29b1dfca9b3876f3ed Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 14 Oct 2014 18:52:51 +0200 Subject: avcodec/iirfilter: Make ff_iir_filter_free_state() also zero the freed pointer Signed-off-by: Michael Niedermayer --- libavcodec/psymodel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/psymodel.c') diff --git a/libavcodec/psymodel.c b/libavcodec/psymodel.c index e7f3353c55..059cbefe37 100644 --- a/libavcodec/psymodel.c +++ b/libavcodec/psymodel.c @@ -141,7 +141,7 @@ av_cold void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx) ff_iir_filter_free_coeffsp(&ctx->fcoeffs); if (ctx->fstate) for (i = 0; i < ctx->avctx->channels; i++) - ff_iir_filter_free_state(ctx->fstate[i]); + ff_iir_filter_free_statep(&ctx->fstate[i]); av_freep(&ctx->fstate); av_free(ctx); } -- cgit v1.2.3