X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0b50ad93942338301a318eda78f7d3999a93fab..e8617760b089b3dd31e4d77ce493267a82fc1003:/src/xrc/xmlres.cpp diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index f7355536ee..c29959f119 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -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); } - -