summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2015-04-24 14:27:03 -0700
committerEvgenii Stepanov <eugenis@google.com>2015-05-12 15:23:09 -0700
commit883cc24817551459fe72994dcff4fc6f54f88538 (patch)
tree99580df0da62be7cfbe72a5bb75973d8075327b1
parenta540058ec00b6d147f40a7cdcf6f47acbd70f6c9 (diff)
downloadframeworks_av-883cc24817551459fe72994dcff4fc6f54f88538.zip
frameworks_av-883cc24817551459fe72994dcff4fc6f54f88538.tar.gz
frameworks_av-883cc24817551459fe72994dcff4fc6f54f88538.tar.bz2
Fix new[] vs delete mismatch.
Detected with AddressSanitizer. Bug: 18202869 Change-Id: I7fa9ee722766968e33faa4d9312385ca303ca274 (cherry picked from commit a37f84ecce59a0d11a687b55527ccb18d4db7f52)
-rw-r--r--media/libstagefright/codecs/aacdec/SoftAAC2.cpp2
1 files changed, 1 insertions, 1 deletions
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(
SoftAAC2::~SoftAAC2() {
aacDecoder_Close(mAACDecoder);
- delete mOutputDelayRingBuffer;
+ delete[] mOutputDelayRingBuffer;
}
void SoftAAC2::initPorts() {