From 6020a01812fc0ff1f1871ec349dfc63de61efd46 Mon Sep 17 00:00:00 2001 From: "Lee Thomason (grinliz)" Date: Sat, 8 Sep 2012 21:15:09 -0700 Subject: [PATCH] remove debug mem write when in release mode --- tinyxml2.h | 2 ++ 1 file changed, 2 insertions(+) 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; }