|
@@ -176,8 +176,16 @@ void Core::debugDeallocateRaw(void* p) {
|
|
|
}
|
|
|
|
|
|
void Core::printMemoryReport() {
|
|
|
+ size_t counter = 0;
|
|
|
for(MemoryInfo* i = headMemoryInfo; i != nullptr; i = i->next) {
|
|
|
- LOG_ERROR("#:# was not freed", i->buffer, i->line);
|
|
|
+ if(i->line < 0) {
|
|
|
+ counter++;
|
|
|
+ } else {
|
|
|
+ LOG_ERROR("#:# was not freed", i->buffer, i->line);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(counter > 0) {
|
|
|
+ LOG_ERROR("# unknown entries were not freed", counter);
|
|
|
}
|
|
|
}
|
|
|
|