]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
safer destruction of wxXmlResource::ms_instance
[wxWidgets.git] / src / xrc / xmlres.cpp
index 649a55320da7f7c0da729ae7f707fb3cb1a3aa12..ade30b60395046eb4a00322f81af7f1908ca1fba 100644 (file)
@@ -1112,7 +1112,7 @@ public:
     }
     void OnExit()
     {
     }
     void OnExit()
     {
-        delete wxXmlResource::Get();
+        delete wxXmlResource::Set(NULL);
         CleanXMLID_Records();
     }
 };
         CleanXMLID_Records();
     }
 };