]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix memory leak by letting the base class version handle the
authorMattia Barbon <mbarbon@cpan.org>
Sun, 23 May 2004 17:15:36 +0000 (17:15 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 23 May 2004 17:15:36 +0000 (17:15 +0000)
destruction.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/hash.h

index 95840eb631172931c48f0c0a288b90a84d0631c6..69658d773bd8b954c45d8ad57b786df6642729c4 100644 (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); }                                \