X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0518029cecf127dc5e792bb3fcd6781d46c0e0b1..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/common/hash.cpp diff --git a/src/common/hash.cpp b/src/common/hash.cpp index 8333e1cdea..8c7049b6b4 100644 --- a/src/common/hash.cpp +++ b/src/common/hash.cpp @@ -26,6 +26,7 @@ #ifndef WX_PRECOMP #include "wx/hash.h" + #include "wx/object.h" #endif wxHashTableBase_Node::wxHashTableBase_Node( long key, void* value, @@ -134,9 +135,7 @@ void wxHashTableBase::Destroy() { Clear(); - delete[] m_table; - - m_table = NULL; + wxDELETEA(m_table); m_size = 0; }