From 89b3c5215a510c729de0eeded52b08fcc9fd2d2a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 14 Apr 2015 02:13:57 +0200 Subject: avcodec/atrac3plusdec: Free mdct contexts at the end Fixes memleak Signed-off-by: Michael Niedermayer --- libavcodec/atrac3plusdec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/atrac3plusdec.c') 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; } -- cgit v1.2.3