Fix memory leak by letting the base class version handle the

destruction.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2004-05-23 17:15:36 +00:00
parent 3e444781ef
commit 4b1e72e266

View File

@@ -348,8 +348,6 @@ public:
const wxHashTable& operator=( const wxHashTable& );
void Destroy() { Clear(); }
// key and value are the same
void Put(long value, wxObject *object)
{ DoPut( value, value, object ); }
@@ -518,7 +516,6 @@ private:
\
virtual ~hashclass() { Destroy(); } \
\
void Destroy() { Clear(); } \
void Put(long key, eltype *data) { DoPut(key, key, (void*)data); } \
void Put(long hash, long key, eltype *data) \
{ DoPut(key, hash, (void*)data); } \