Adding objects GUI initial. Changing TODO. Some fixes along side

This commit is contained in:
IlushaShurupov 2023-08-03 22:04:42 +03:00 committed by Ilya Shurupov
parent f579a969ce
commit 17ad239692
18 changed files with 1345 additions and 56 deletions

View file

@ -164,7 +164,7 @@ bool HeapAllocGlobal::checkLeaks() {
}
// 1) Check for not deallocated memory
if (mNumAllocations && ignoredCount != mNumAllocations) {
if (mNumAllocations && ignoredCount < mNumAllocations) {
#ifdef MEM_STACK_TRACE
for (auto iter = mEntry; iter; iter = iter->mPrev) {
@ -172,7 +172,7 @@ bool HeapAllocGlobal::checkLeaks() {
}
#endif
printf(" Count : %llu", mNumAllocations);
printf(" Count : %llu", mNumAllocations - ignoredCount);
ASSERT(!"Destruction of not freed Allocator")
return true;