X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0518029cecf127dc5e792bb3fcd6781d46c0e0b1..3e4e0908a7c8217f87d1c7a521f590c1de3bc0f9:/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; }