فهرست منبع

remove debug mem write when in release mode

Lee Thomason (grinliz) 13 سال پیش
والد
کامیت
6020a01812
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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;
 	}