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.
This commit is contained in:
Martin Storsjö
2014-09-16 11:10:48 +03:00
parent f8d5f93b16
commit 58eba54e8c

View File

@@ -405,7 +405,7 @@ int SimulateNALLoss (const unsigned char* pSrc, int& iSrcLen, std::vector<SLost
memset ((void*)pSrc, 0, iSrcLen);
memcpy ((void*)pSrc, pDst, iDstLen);
iSrcLen = iDstLen;
delete pDst;
delete [] pDst;
return iSkipedBytes;
}