fix for multiple initialization

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2003-05-07 19:03:10 +00:00
parent b63fce942f
commit 139c5871c9
2 changed files with 6 additions and 4 deletions

View File

@ -1226,7 +1226,10 @@ static void CleanXRCID_Record(XRCID_record *rec)
static void CleanXRCID_Records()
{
for (int i = 0; i < XRCID_TABLE_SIZE; i++)
{
CleanXRCID_Record(XRCID_Records[i]);
XRCID_Records[i] = NULL;
}
}
static void AddStdXRCID_Records()
@ -1286,5 +1289,3 @@ void wxXmlInitResourceModule()
module->Init();
wxModule::RegisterModule(module);
}

View File

@ -1226,7 +1226,10 @@ static void CleanXRCID_Record(XRCID_record *rec)
static void CleanXRCID_Records()
{
for (int i = 0; i < XRCID_TABLE_SIZE; i++)
{
CleanXRCID_Record(XRCID_Records[i]);
XRCID_Records[i] = NULL;
}
}
static void AddStdXRCID_Records()
@ -1286,5 +1289,3 @@ void wxXmlInitResourceModule()
module->Init();
wxModule::RegisterModule(module);
}