소스 검색

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;
 	}