fix a memory leak due to wrong syntax

In C++ arrays are deleted with `delete[]` and not `delete`.
This commit is contained in:
Rafael Kitover 2017-08-03 16:29:37 -07:00
parent 997b97573f
commit c99a58faee
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ template <typename T> class Array
~Array()
{
if (dealloc) delete m_p;
if (dealloc) delete[] m_p;
}
size_type size() const