]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
assert is raised when using the thread sample (which works) so the test is
[wxWidgets.git] / src / xrc / xmlres.cpp
index f7355536ee72b654b7af5a7f94a7c6a32d37df35..c29959f11905302f1fa82769666c9faed9711ef2 100644 (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);
 }
-
-