Bug 1954034 - mfbt test: fix a mismatched-new-delete r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D241604
This commit is contained in:
@@ -322,7 +322,7 @@ static size_t DeleteIntFunctionCallCount = 0;
|
||||
|
||||
static void DeleteIntFunction(void* aPtr) {
|
||||
DeleteIntFunctionCallCount++;
|
||||
delete static_cast<int*>(aPtr);
|
||||
delete[] static_cast<int*>(aPtr);
|
||||
}
|
||||
|
||||
static void SetMallocedInt(UniquePtr<int, FreeSignature>& aPtr, int aI) {
|
||||
|
||||
Reference in New Issue
Block a user