forked from bartvdbraak/blender
committed debug memcount by accident
This commit is contained in:
parent
7016538974
commit
a89d551a1c
@ -57,11 +57,11 @@
|
|||||||
* lets you count the allocations so as to find the allocator of unfreed memory
|
* lets you count the allocations so as to find the allocator of unfreed memory
|
||||||
* in situations where the leak is predictable */
|
* in situations where the leak is predictable */
|
||||||
|
|
||||||
#define DEBUG_MEMCOUNTER
|
//#define DEBUG_MEMCOUNTER
|
||||||
|
|
||||||
#ifdef DEBUG_MEMCOUNTER
|
#ifdef DEBUG_MEMCOUNTER
|
||||||
/* set this to the value that isn't being freed */
|
/* set this to the value that isn't being freed */
|
||||||
# define DEBUG_MEMCOUNTER_ERROR_VAL 34723
|
# define DEBUG_MEMCOUNTER_ERROR_VAL 0
|
||||||
static int _mallocn_count = 0;
|
static int _mallocn_count = 0;
|
||||||
|
|
||||||
/* breakpoint here */
|
/* breakpoint here */
|
||||||
|
Loading…
Reference in New Issue
Block a user