Browse Source

avcodec/atrac3plusdec: Free mdct contexts at the end

Fixes memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 11 years ago
parent
commit
89b3c5215a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/atrac3plusdec.c

+ 3
- 0
libavcodec/atrac3plusdec.c View File

@@ -72,6 +72,9 @@ static av_cold int atrac3p_decode_close(AVCodecContext *avctx)
av_freep(&ctx->ch_units);
av_freep(&ctx->fdsp);

ff_mdct_end(&ctx->mdct_ctx);
ff_mdct_end(&ctx->ipqf_dct_ctx);

return 0;
}



Loading…
Cancel
Save