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
This commit is contained in:
@@ -98,7 +98,6 @@ public:
|
|||||||
// Cleans up hash table used for fast searching.
|
// Cleans up hash table used for fast searching.
|
||||||
wxDEPRECATED( static void CleanUpClasses() );
|
wxDEPRECATED( static void CleanUpClasses() );
|
||||||
#endif
|
#endif
|
||||||
static void CleanUp();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const wxChar *m_className;
|
const wxChar *m_className;
|
||||||
|
@@ -356,8 +356,6 @@ static void DoCommonPostCleanup()
|
|||||||
{
|
{
|
||||||
wxModule::CleanUpModules();
|
wxModule::CleanUpModules();
|
||||||
|
|
||||||
wxClassInfo::CleanUp();
|
|
||||||
|
|
||||||
// we can't do this in wxApp itself because it doesn't know if argv had
|
// we can't do this in wxApp itself because it doesn't know if argv had
|
||||||
// been allocated
|
// been allocated
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
|
@@ -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()
|
void wxClassInfo::Register()
|
||||||
{
|
{
|
||||||
if ( !sm_classTable )
|
if ( !sm_classTable )
|
||||||
|
Reference in New Issue
Block a user