diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-14 02:13:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-14 02:31:37 +0200 |
commit | 89b3c5215a510c729de0eeded52b08fcc9fd2d2a (patch) | |
tree | 640780e6ba6d5f55b85599225d5c69a6c3b84ce1 | |
parent | 4d74c8d5503503097e8c6968d37d8a78dc4795e5 (diff) | |
download | ffmpeg-89b3c5215a510c729de0eeded52b08fcc9fd2d2a.tar.gz |
avcodec/atrac3plusdec: Free mdct contexts at the end
Fixes memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/atrac3plusdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/atrac3plusdec.c b/libavcodec/atrac3plusdec.c index e6f0416317..f858497d46 100644 --- a/libavcodec/atrac3plusdec.c +++ b/libavcodec/atrac3plusdec.c @@ -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; } |