diff --git a/include/htool/basic_types/matrix.hpp b/include/htool/basic_types/matrix.hpp index bee3f254..b9227085 100644 --- a/include/htool/basic_types/matrix.hpp +++ b/include/htool/basic_types/matrix.hpp @@ -209,7 +209,7 @@ class Matrix { the number of columns is set to _nbc_. */ void resize(const int nbr, const int nbc, T value = 0) { - if (m_data != nullptr && m_is_owning_data) { + if (m_is_owning_data) { delete[] m_data; } m_data = new T[nbr * nbc];