diff options
author | Alex Converse <alex.converse@gmail.com> | 2010-06-28 21:36:19 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2010-06-28 21:36:19 +0000 |
commit | 9a3fe1ae6efc3716786823efe1422b6b40e4f76f (patch) | |
tree | 43896f8c7575e8101278e2bc8745785bc31bfc1b /libavcodec/psymodel.c | |
parent | 072c0d605fd4815441dc2f8f4c5f3b4efc81c878 (diff) | |
download | ffmpeg-9a3fe1ae6efc3716786823efe1422b6b40e4f76f.tar.gz |
Make ff_psy_preprocess_end() act like av_freep().
Originally committed as revision 23867 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/psymodel.c')
-rw-r--r-- | libavcodec/psymodel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/psymodel.c b/libavcodec/psymodel.c index f87dbcf277..88a76f5b6b 100644 --- a/libavcodec/psymodel.c +++ b/libavcodec/psymodel.c @@ -117,11 +117,14 @@ void ff_psy_preprocess(struct FFPsyPreprocessContext *ctx, 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; } |