From: Vadim Zeitlin Date: Mon, 27 Mar 2006 00:54:00 +0000 (+0000) Subject: removed wxClassInfo::CleanUp() as it breaks wxEntry reentrancy: once the sm_classTabl... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/85149efad7fc85798de59e8a680616aa5ad85ffb removed wxClassInfo::CleanUp() as it breaks wxEntry reentrancy: once the sm_classTable is destroyed it's not going to be recreated again; instead leave last wxClassInfo::Unregister() call do this git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/object.h b/include/wx/object.h index 58e62f03be..b181ed0a84 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -98,7 +98,6 @@ public: // Cleans up hash table used for fast searching. wxDEPRECATED( static void CleanUpClasses() ); #endif - static void CleanUp(); public: const wxChar *m_className; diff --git a/src/common/init.cpp b/src/common/init.cpp index 258539e3ff..b27736deac 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -356,8 +356,6 @@ static void DoCommonPostCleanup() { wxModule::CleanUpModules(); - wxClassInfo::CleanUp(); - // we can't do this in wxApp itself because it doesn't know if argv had // been allocated #if wxUSE_UNICODE diff --git a/src/common/object.cpp b/src/common/object.cpp index 87e3dc1ed7..4cb6e34b0f 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -208,15 +208,6 @@ wxClassInfo *wxClassInfo::FindClass(const wxChar *className) } } -void wxClassInfo::CleanUp() -{ - if ( sm_classTable ) - { - delete sm_classTable; - sm_classTable = NULL; - } -} - void wxClassInfo::Register() { if ( !sm_classTable )