Explorar o código

fix a missing [] in the delete call

Lee Thomason %!s(int64=14) %!d(string=hai) anos
pai
achega
a2ae54e40d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 )