diff --git a/tinyxml2.h b/tinyxml2.h index e1c22c5..975ab8c 100644 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -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; }