Updated leak message with total leaks (in bytes).

This commit is contained in:
davyw 2012-03-20 21:04:24 +01:00
parent 88e09ca813
commit c84330b26a

View file

@ -169,7 +169,7 @@ scl_memmgr::~scl_memmgr(void) {
// Check if total allocated equals total deallocated
if (_allocated_total != _deallocated_total) {
// todo: generate warning for possible memory leaks, enable full memory leak checking
printf("scl_memmgr warning: Possible memory leaks detected\n");
printf("scl_memmgr warning: Possible memory leaks detected (%d of %d bytes)\n", _allocated_total - _deallocated_total, _allocated_total);
}
// Compact leaks into an error list to prevent same leak being reported multiple times.