summaryrefslogtreecommitdiff
path: root/src/ai/ai_scanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/ai_scanner.cpp')
-rw-r--r--src/ai/ai_scanner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index d7fc258c7..11f4cdafd 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -179,6 +179,7 @@ AIScanner::~AIScanner()
delete (*lit).second;
}
+ delete this->info_dummy;
delete this->engine;
}
@@ -331,7 +332,7 @@ void AIScanner::RegisterAI(AIInfo *info)
strtolower(ai_name);
if (this->info_single_list.find(ai_name) == this->info_single_list.end()) {
this->info_single_list[strdup(ai_name)] = info;
- } else if (this->info_single_list[strdup(ai_name)]->GetVersion() < info->GetVersion()) {
+ } else if (this->info_single_list[ai_name]->GetVersion() < info->GetVersion()) {
this->info_single_list[ai_name] = info;
}
}