From 39c3ebdc910100a3194f62ac52af4e15a9422264 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 13 Feb 2010 13:38:10 +0000 Subject: fix for memory leak: node animation data wasnt being free'd also some corrections to memory debug stuff. --- intern/guardedalloc/intern/mallocn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'intern') diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index c90cbf65c4d..677d756c8e6 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -305,9 +305,9 @@ void *MEM_mallocN(unsigned int len, const char *str) memset(memh+1, 255, len); #ifdef DEBUG_MEMCOUNTER - memh->_count= _mallocn_count++; if(_mallocn_count==DEBUG_MEMCOUNTER_ERROR_VAL) memcount_raise("MEM_mallocN"); + memh->_count= _mallocn_count++; #endif return (++memh); } @@ -330,9 +330,9 @@ void *MEM_callocN(unsigned int len, const char *str) make_memhead_header(memh, len, str); mem_unlock_thread(); #ifdef DEBUG_MEMCOUNTER - memh->_count= _mallocn_count++; if(_mallocn_count==DEBUG_MEMCOUNTER_ERROR_VAL) memcount_raise("MEM_callocN"); + memh->_count= _mallocn_count++; #endif return (++memh); } @@ -372,9 +372,9 @@ void *MEM_mapallocN(unsigned int len, const char *str) mmap_in_use += len; mem_unlock_thread(); #ifdef DEBUG_MEMCOUNTER - memh->_count= _mallocn_count++; if(_mallocn_count==DEBUG_MEMCOUNTER_ERROR_VAL) memcount_raise("MEM_mapallocN"); + memh->_count= _mallocn_count++; #endif return (++memh); } -- cgit v1.2.3