Explorar o código

remove debug mem write when in release mode

Lee Thomason (grinliz) %!s(int64=13) %!d(string=hai) anos
pai
achega
6020a01812
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tinyxml2.h

+ 2 - 0
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;
 	}