- more memory cleanup and thread cleanup (found using valgrind)

This commit is contained in:
Mark Vejvoda
2011-09-28 15:32:57 +00:00
parent a3bf4bfe32
commit 43ed4553ea
7 changed files with 63 additions and 14 deletions

View File

@@ -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();
}
}