Explorar el Código

fix a missing [] in the delete call

Lee Thomason hace 14 años
padre
commit
a2ae54e40d
Se han modificado 1 ficheros con 1 adiciones y 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 )