From 4b1e72e266ec6993d665c65d5f5e59e7981afc17 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 23 May 2004 17:15:36 +0000 Subject: [PATCH] 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 --- include/wx/hash.h | 3 --- 1 file changed, 3 deletions(-) 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); } \ -- 2.47.2