# HG changeset patch # User alexc # Date 1277760979 0 # Node ID 0d044629506035366a55b34deb9f30f1a2236bc4 # Parent ea2cb1a9e815c6808c15ae97a477ecac8aff9847 Make ff_psy_preprocess_end() act like av_freep(). diff -r ea2cb1a9e815 -r 0d0446295060 psymodel.c --- a/psymodel.c Mon Jun 28 21:34:57 2010 +0000 +++ b/psymodel.c Mon Jun 28 21:36:19 2010 +0000 @@ -117,11 +117,14 @@ av_cold void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx) { + if (ctx) { int i; ff_iir_filter_free_coeffs(ctx->fcoeffs); if (ctx->fstate) for (i = 0; i < ctx->avctx->channels; i++) ff_iir_filter_free_state(ctx->fstate[i]); av_freep(&ctx->fstate); + } + ctx = NULL; }