diff options
author | Fraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de> | 2019-08-09 17:06:59 +0200 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2019-10-10 12:45:54 -0700 |
commit | f26eb8af7c38047ad113072a6de38e069dc5cf3f (patch) | |
tree | ae2b2bd164968afce7c3727c7b6b205c2e3fc558 /libAACdec/src/aacdecoder.cpp | |
parent | 128abf6b1ace9c790ba7f42d976d3035cbe347b6 (diff) | |
download | fdk-aac-f26eb8af7c38047ad113072a6de38e069dc5cf3f.tar.gz fdk-aac-f26eb8af7c38047ad113072a6de38e069dc5cf3f.tar.bz2 fdk-aac-f26eb8af7c38047ad113072a6de38e069dc5cf3f.zip |
Fix CpePersistentData memory leak.
Bug: 131430997
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc
Change-Id: Iee5c93d61088bbda2328099ad20413adae3fa09b
Diffstat (limited to 'libAACdec/src/aacdecoder.cpp')
-rw-r--r-- | libAACdec/src/aacdecoder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libAACdec/src/aacdecoder.cpp b/libAACdec/src/aacdecoder.cpp index 38ef4f8..b15fc80 100644 --- a/libAACdec/src/aacdecoder.cpp +++ b/libAACdec/src/aacdecoder.cpp @@ -1303,7 +1303,8 @@ static void CAacDecoder_DeInit(HANDLE_AACDECODER self, const int subStreamIndex) { int ch; int aacChannelOffset = 0, aacChannels = (8); - int numElements = (((8)) + (8)), elementOffset = 0; + int numElements = (3 * ((8) * 2) + (((8) * 2)) / 2 + 4 * (1) + 1), + elementOffset = 0; if (self == NULL) return; |