remove debug mem write when in release mode

This commit is contained in:
Lee Thomason (grinliz) 2012-09-08 21:15:09 -07:00
parent 77d7f206f6
commit 6020a01812
1 changed files with 2 additions and 0 deletions

View File

@ -282,7 +282,9 @@ public:
if ( !mem ) return;
--currentAllocs;
Chunk* chunk = (Chunk*)mem;
#ifdef DEBUG
memset( chunk, 0xfe, sizeof(Chunk) );
#endif
chunk->next = root;
root = chunk;
}