mirror of https://git.ffmpeg.org/ffmpeg.git
Make ff_psy_preprocess_end() act like av_freep().
Originally committed as revision 23867 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
072c0d605f
commit
9a3fe1ae6e
|
@ -117,6 +117,7 @@ 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)
|
||||
|
@ -124,4 +125,6 @@ av_cold void ff_psy_preprocess_end(struct FFPsyPreprocessContext *ctx)
|
|||
ff_iir_filter_free_state(ctx->fstate[i]);
|
||||
av_freep(&ctx->fstate);
|
||||
}
|
||||
ctx = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue