diff options
author | Anubisss <none@none> | 2010-01-16 01:55:45 +0100 |
---|---|---|
committer | Anubisss <none@none> | 2010-01-16 01:55:45 +0100 |
commit | d7fd577cf4161b84a2b73ad71b73ac1a75d183de (patch) | |
tree | 3a38bdf8abf41d14b7f4a20383b8fbd81c0aab61 /src/game/CreatureGroups.cpp | |
parent | a23e26526bc72fbe9967221f99e8ecc03025a7b0 (diff) |
Fix again memory leaks in CreatureGroupManager::LoadCreatureFormations()
my log:
==28921== 112 bytes in 7 blocks are definitely lost in loss record 8 of 67
==28921== at 0x4C2626C: operator new(unsigned long) (vg_replace_malloc.c:230)
==28921== by 0x8A6043: CreatureGroupManager::LoadCreatureFormations() (CreatureGroups.cpp:111)
==28921== by 0xC00E91: World::SetInitialWorldSettings() (World.cpp:1553)
==28921== by 0x808D56: Master::Run() (Master.cpp:235)
==28921== by 0x808215: main (Main.cpp:154)
--HG--
branch : trunk
Diffstat (limited to 'src/game/CreatureGroups.cpp')
-rw-r--r-- | src/game/CreatureGroups.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/CreatureGroups.cpp b/src/game/CreatureGroups.cpp index 38d15e6824d..b56178e2da7 100644 --- a/src/game/CreatureGroups.cpp +++ b/src/game/CreatureGroups.cpp @@ -130,6 +130,7 @@ void CreatureGroupManager::LoadCreatureFormations() if(!result) { sLog.outErrorDb("creature_formations table leader guid %u incorrect (not exist)", group_member->leaderGUID); + delete group_member; continue; } delete result; @@ -138,6 +139,7 @@ void CreatureGroupManager::LoadCreatureFormations() if(!result) { sLog.outErrorDb("creature_formations table member guid %u incorrect (not exist)", memberGUID); + delete group_member; continue; } delete result; |