Browse Source

fix a missing [] in the delete call

Lee Thomason 14 năm trước cách đây
mục cha
commit
a2ae54e40d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

@@ -171,7 +171,7 @@ public:
 	~DynArray()
 	{
 		if ( mem != pool ) {
-			delete mem;
+			delete [] mem;
 		}
 	}
 	void Push( T t )