commit | 883cc24817551459fe72994dcff4fc6f54f88538 | [log] [tgz] |
---|---|---|
author | Evgenii Stepanov <eugenis@google.com> | Fri Apr 24 14:27:03 2015 -0700 |
committer | Evgenii Stepanov <eugenis@google.com> | Tue May 12 15:23:09 2015 -0700 |
tree | 99580df0da62be7cfbe72a5bb75973d8075327b1 | |
parent | a540058ec00b6d147f40a7cdcf6f47acbd70f6c9 [diff] |
Fix new[] vs delete mismatch. Detected with AddressSanitizer. Bug: 18202869 Change-Id: I7fa9ee722766968e33faa4d9312385ca303ca274 (cherry picked from commit a37f84ecce59a0d11a687b55527ccb18d4db7f52)
diff --git a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp index 10937ec..965c55e 100644 --- a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp +++ b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
@@ -75,7 +75,7 @@ SoftAAC2::~SoftAAC2() { aacDecoder_Close(mAACDecoder); - delete mOutputDelayRingBuffer; + delete[] mOutputDelayRingBuffer; } void SoftAAC2::initPorts() {