feat(memory): add memory leak check assertion

This commit is contained in:
2023-01-11 19:24:02 +08:00
parent d8543421a0
commit 49023da0c1
3 changed files with 96 additions and 30 deletions

View File

@ -148,6 +148,7 @@ void TestMemoryMalloc()
always_check(PtrC->A == 0x01234567);
delete [] PtrC;
Memory::Free(Memory::Realloc(Memory::Malloc(0), 0));
}
NAMESPACE_UNNAMED_BEGIN