diff --git a/tinyxml2.h b/tinyxml2.h index d917204..352b591 100644 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -171,7 +171,7 @@ public: ~DynArray() { if ( mem != pool ) { - delete mem; + delete [] mem; } } void Push( T t )