History

Merge pull request #1360 from mstorsjo/use-correct-delete

Use the correct version of delete within a unit test

Ethan Hugg committed 12 years ago

Commit 19dcff82 parents 68e92f9 58eba541 file · +1 −1Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+1−1
@@ -405,7 +405,7 @@ int SimulateNALLoss (const unsigned char* pSrc, int& iSrcLen, std::vector<SLost · 404 unmodified lines
405405 memset ((void*)pSrc, 0, iSrcLen);
406406 memcpy ((void*)pSrc, pDst, iDstLen);
407407 iSrcLen = iDstLen;
408− delete pDst;
408+ delete [] pDst;
409409 return iSkipedBytes;
410410 }
411411

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t