summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-12 21:40:00 +0000
committertruebrain <truebrain@openttd.org>2009-01-12 21:40:00 +0000
commit695765fde79e9b30670d11cf65b74224816cb509 (patch)
tree9da9cca27887c5fe2104cec38c26ef76d6e8a381
parent1c3b7ba863380037bab98ade2ff3a59de8093204 (diff)
downloadopenttd-695765fde79e9b30670d11cf65b74224816cb509.tar.xz
(svn r15042) -Fix (r15027): don't leak memory in AIInfo (Yexo)
-rw-r--r--src/ai/ai_info.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_info.cpp b/src/ai/ai_info.cpp
index 0eead0302..80f6f9e8d 100644
--- a/src/ai/ai_info.cpp
+++ b/src/ai/ai_info.cpp
@@ -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();
}