1
0
Fork 0

(svn r15042) -Fix (r15027): don't leak memory in AIInfo (Yexo)

release/0.7
truebrain 2009-01-12 21:40:00 +00:00
parent 1c3b7ba863
commit 695765fde7
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ AIInfo::~AIInfo()
/* Free all allocated strings */ /* Free all allocated strings */
for (AIConfigItemList::iterator it = this->config_list.begin(); it != this->config_list.end(); it++) { for (AIConfigItemList::iterator it = this->config_list.begin(); it != this->config_list.end(); it++) {
free((char *)(*it).name); free((char *)(*it).name);
free((char *)(*it).description);
} }
this->config_list.clear(); this->config_list.clear();
} }