Another two memory leaks.
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user