From 695765fde79e9b30670d11cf65b74224816cb509 Mon Sep 17 00:00:00 2001 From: truebrain Date: Mon, 12 Jan 2009 21:40:00 +0000 Subject: (svn r15042) -Fix (r15027): don't leak memory in AIInfo (Yexo) --- src/ai/ai_info.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } -- cgit v1.2.3-70-g09d2