Possibly fixed more memory leaks in other places.

--HG--
branch : trunk
This commit is contained in:
raczman committed 2009-05-13 14:06:33 +02:00
1 parent 5748c36621
commit bfaaa8201e
6 files changed
+20 -3

No files matched your search

+7 -2
View File
@@ -200,8 +200,13 @@ bool OutdoorPvPSI::HandleDropFlag(Player *plr, uint32 spellId)
// he dropped it further, summon mound
GameObject * go = new GameObject;
Map * map = MapManager::Instance().GetMap(plr->GetMapId(), plr);
if(!map)
return true;
if(!map){
delete go;
return true;
}
if(!go->Create(objmgr.GenerateLowGuid(HIGHGUID_GAMEOBJECT),SI_SILITHYST_MOUND, map,plr->GetPositionX(),plr->GetPositionY(),plr->GetPositionZ(),plr->GetOrientation(),0,0,0,0,100,1))
{
delete go;