mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r15042) -Fix (r15027): don't leak memory in AIInfo (Yexo)
This commit is contained in:
parent
8823f796ea
commit
c8f9cbca53
@ -180,6 +180,7 @@ AIInfo::~AIInfo()
|
||||
/* Free all allocated strings */
|
||||
for (AIConfigItemList::iterator it = this->config_list.begin(); it != this->config_list.end(); it++) {
|
||||
free((char *)(*it).name);
|
||||
free((char *)(*it).description);
|
||||
}
|
||||
this->config_list.clear();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user