diff options
author | click <none@none> | 2010-12-17 05:05:17 +0100 |
---|---|---|
committer | click <none@none> | 2010-12-17 05:05:17 +0100 |
commit | 0c6750dd52ff2d53b6937cb5d280981b17ee38ed (patch) | |
tree | 53dc593a2c3ef60c343360866f4a37389a34b382 /src | |
parent | a7f354825906efd80fb31d1f661a2a70ea6a5b50 (diff) |
Core: Fix a memoryleak in LoadCreatureFormations() - thanks to ge0rg (again)
--HG--
branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Creature/CreatureGroups.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Entities/Creature/CreatureGroups.cpp b/src/server/game/Entities/Creature/CreatureGroups.cpp index abdb4407b88..6feb47bff8d 100755 --- a/src/server/game/Entities/Creature/CreatureGroups.cpp +++ b/src/server/game/Entities/Creature/CreatureGroups.cpp @@ -71,6 +71,8 @@ void CreatureGroupManager::RemoveCreatureFromGroup(CreatureGroup *group, Creatur void CreatureGroupManager::LoadCreatureFormations() { //Clear existing map + for (CreatureGroupInfoType::iterator itr = CreatureGroupMap.begin(); itr != CreatureGroupMap.end(); ++itr) + delete itr->second; CreatureGroupMap.clear(); //Check Integrity of the table |