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