From: Mattia Barbon Date: Sun, 23 May 2004 17:15:36 +0000 (+0000) Subject: Fix memory leak by letting the base class version handle the X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4b1e72e266ec6993d665c65d5f5e59e7981afc17 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 --- diff --git a/include/wx/hash.h b/include/wx/hash.h index 95840eb631..69658d773b 100644 --- a/include/wx/hash.h +++ b/include/wx/hash.h @@ -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); } \