aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-14 02:13:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-14 02:31:37 +0200
commit89b3c5215a510c729de0eeded52b08fcc9fd2d2a (patch)
tree640780e6ba6d5f55b85599225d5c69a6c3b84ce1
parent4d74c8d5503503097e8c6968d37d8a78dc4795e5 (diff)
downloadffmpeg-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.c3
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;
}