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:
@@ -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); } \
|
||||
|
Reference in New Issue
Block a user