aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-07-13 15:49:08 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-07-13 16:54:02 -0400
commitf501157e5352e418b28cf6728208ea028bf3505c (patch)
treee0a6e9c4ffc5ff293f7040efd2d1e4b450c45643 /libavcodec
parentcdc5a3a194ac9275129ca88da005786ebaceb268 (diff)
downloadffmpeg-f501157e5352e418b28cf6728208ea028bf3505c.tar.gz
ac3enc: fix memleak
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3enc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 809a3f5a4f..f957ee9258 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -1820,6 +1820,8 @@ av_cold int ff_ac3_encode_close(AVCodecContext *avctx)
av_freep(&s->band_psd_buffer);
av_freep(&s->mask_buffer);
av_freep(&s->qmant_buffer);
+ av_freep(&s->cpl_coord_exp_buffer);
+ av_freep(&s->cpl_coord_mant_buffer);
for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
AC3Block *block = &s->blocks[blk];
av_freep(&block->mdct_coef);
@@ -1830,6 +1832,8 @@ av_cold int ff_ac3_encode_close(AVCodecContext *avctx)
av_freep(&block->band_psd);
av_freep(&block->mask);
av_freep(&block->qmant);
+ av_freep(&block->cpl_coord_exp);
+ av_freep(&block->cpl_coord_mant);
}
s->mdct_end(s->mdct);