commit | 6020a01812fc0ff1f1871ec349dfc63de61efd46 | [log] [tgz] |
---|---|---|
author | Lee Thomason (grinliz) <leethomason@gmail.com> | Sat Sep 08 21:15:09 2012 -0700 |
committer | Lee Thomason (grinliz) <leethomason@gmail.com> | Sat Sep 08 21:15:09 2012 -0700 |
tree | 4159155eeeaf54600fee5b33ccc793b4d9dce088 | |
parent | 77d7f206f616e1b649f3c00c8422a940b9b1eb51 [diff] [blame] |
remove debug mem write when in release mode
diff --git a/tinyxml2.h b/tinyxml2.h index e1c22c5..975ab8c 100644 --- a/tinyxml2.h +++ b/tinyxml2.h
@@ -282,7 +282,9 @@ if ( !mem ) return; --currentAllocs; Chunk* chunk = (Chunk*)mem; +#ifdef DEBUG memset( chunk, 0xfe, sizeof(Chunk) ); +#endif chunk->next = root; root = chunk; }