(svn r15121) -Fix: more mem-leak fixes (this should make SmatZ so happy ;) :p)
This commit is contained in:
@@ -55,7 +55,11 @@ AIConfig::AIConfig(const AIConfig *config)
|
||||
|
||||
AIConfig::~AIConfig()
|
||||
{
|
||||
this->ChangeAI(NULL);
|
||||
free((void *)this->name);
|
||||
for (SettingValueList::iterator it = this->settings.begin(); it != this->settings.end(); it++) {
|
||||
free((void*)(*it).first);
|
||||
}
|
||||
this->settings.clear();
|
||||
}
|
||||
|
||||
AIInfo *AIConfig::GetInfo()
|
||||
|
Reference in New Issue
Block a user