fix a memory leak due to wrong syntax
In C++ arrays are deleted with `delete[]` and not `delete`.
This commit is contained in:
parent
997b97573f
commit
c99a58faee
|
@ -53,7 +53,7 @@ template <typename T> class Array
|
|||
|
||||
~Array()
|
||||
{
|
||||
if (dealloc) delete m_p;
|
||||
if (dealloc) delete[] m_p;
|
||||
}
|
||||
|
||||
size_type size() const
|
||||
|
|
Loading…
Reference in New Issue