ref: 58eba54e8c2b9ce11ed010198a32fdb78757144c
parent: f8d5f93b16b788f7326aa7f286601810571c9e78
author: Martin Storsjö <[email protected]>
date: Tue Sep 16 07:10:48 EDT 2014
Use the correct version of delete within a unit test This fixes valgrind warnings when running this test. The mismatched delete could also potentially have caused memory corruption issues while running the tests.
--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -405,7 +405,7 @@
memset ((void*)pSrc, 0, iSrcLen);
memcpy ((void*)pSrc, pDst, iDstLen);
iSrcLen = iDstLen;
- delete pDst;
+ delete [] pDst;
return iSkipedBytes;
}