Another two memory leaks.

--HG--
branch : trunk
This commit is contained in:
raczman
2009-05-15 21:06:23 +02:00
parent 419c448bc9
commit ad552d272d
2 changed files with 18 additions and 3 deletions
+4 -1
View File
@@ -232,7 +232,10 @@ bool OutdoorPvPSI::HandleDropFlag(Player *plr, uint32 spellId)
GameObject * go = new GameObject;
Map * map = MapManager::Instance().GetMap(plr->GetMapId(), plr);
if(!map)
return true;
{
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;