Explorar el Código

remove debug mem write when in release mode

Lee Thomason (grinliz) hace 13 años
padre
commit
6020a01812
Se han modificado 1 ficheros con 2 adiciones y 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;
 	}