Disabling TRACK_ALLOCATIONS
This commit is contained in:
parent
88a47020cf
commit
76aab80e39
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
// NB: please do not commit code with this uncommented. It's
|
||||
// hugely expensive and should only be used as a last resort.
|
||||
//
|
||||
#define TRACK_ALLOCATIONS
|
||||
// #define TRACK_ALLOCATIONS
|
||||
|
||||
#define MAGIC 0xbadc0ffe
|
||||
|
||||
|
|
@ -114,7 +114,7 @@ memory_region::~memory_region() {
|
|||
}
|
||||
#ifdef TRACK_ALLOCATIONS
|
||||
if (_detailed_leaks) {
|
||||
unsigned int leak_count = 0;
|
||||
int leak_count = 0;
|
||||
for (size_t i = 0; i < _allocation_list.size(); i++) {
|
||||
if (_allocation_list[i] != NULL) {
|
||||
alloc_header *header = (alloc_header*)_allocation_list[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue