mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 22:51:24 +02:00
some memory leak cleanup
This commit is contained in:
@@ -685,6 +685,7 @@ void Font::bidi_cvt(string &str_) {
|
||||
|
||||
//Free allocated memory
|
||||
delete [] ltov;
|
||||
delete [] vtol;
|
||||
delete [] visual;
|
||||
delete [] logical;
|
||||
delete [] ip;
|
||||
|
@@ -34,6 +34,7 @@ FileCRCPreCacheThread::FileCRCPreCacheThread() : BaseThread() {
|
||||
workerThreadTechPaths.clear();
|
||||
preCacheWorkerThreadList.clear();
|
||||
processTechCB = NULL;
|
||||
pauseForGame = false;
|
||||
uniqueID = "FileCRCPreCacheThread";
|
||||
}
|
||||
|
||||
@@ -44,6 +45,7 @@ FileCRCPreCacheThread::FileCRCPreCacheThread(vector<string> techDataPaths,
|
||||
this->workerThreadTechPaths = workerThreadTechPaths;
|
||||
preCacheWorkerThreadList.clear();
|
||||
this->processTechCB = processTechCB;
|
||||
pauseForGame = false;
|
||||
uniqueID = "FileCRCPreCacheThread";
|
||||
}
|
||||
|
||||
|
@@ -400,6 +400,10 @@ XmlNode *XmlIoRapid::load(const string &path, const std::map<string,string> &map
|
||||
|
||||
rootNode= new XmlNode(doc->first_node(),mapTagReplacementValues);
|
||||
|
||||
//doc->clear();
|
||||
cleanup();
|
||||
init();
|
||||
|
||||
if(showPerfStats) printf("In [%s::%s Line: %d] took msecs: " MG_I64_SPECIFIER "\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,chrono.getMillis());
|
||||
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
|
Reference in New Issue
Block a user