mirror of
https://github.com/glest/glest-source.git
synced 2025-09-26 07:28:59 +02:00
- more memory cleanup and thread cleanup (found using valgrind)
This commit is contained in:
@@ -64,6 +64,7 @@ bool XmlIo::initialized= false;
|
||||
|
||||
XmlIo::XmlIo() {
|
||||
try{
|
||||
//printf("XmlIo init\n");
|
||||
XMLPlatformUtils::Initialize();
|
||||
|
||||
XmlIo::initialized= true;
|
||||
@@ -93,6 +94,7 @@ XmlIo &XmlIo::getInstance() {
|
||||
void XmlIo::cleanup() {
|
||||
if(XmlIo::initialized == true) {
|
||||
XmlIo::initialized= false;
|
||||
//printf("XmlIo cleanup\n");
|
||||
XMLPlatformUtils::Terminate();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user