]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/hash.cpp
Applied #15375 to stop event-sending in generic wxSpinCtrl ctor (eco)
[wxWidgets.git] / src / common / hash.cpp
index 8333e1cdea03fa8f43f41a5281ecb25365153ad9..74389735c97a5969d0f76b6cb76a1c0d8260ee55 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Julian Smart
 // Modified by: VZ at 25.02.00: type safe hashes with WX_DECLARE_HASH()
 // Created:     01/02/97
-// RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -26,6 +25,7 @@
 
 #ifndef WX_PRECOMP
     #include "wx/hash.h"
+    #include "wx/object.h"
 #endif
 
 wxHashTableBase_Node::wxHashTableBase_Node( long key, void* value,
@@ -134,9 +134,7 @@ void wxHashTableBase::Destroy()
 {
     Clear();
 
-    delete[] m_table;
-
-    m_table = NULL;
+    wxDELETEA(m_table);
     m_size = 0;
 }