[6886] Prevent some memory losses at server shutdown.

This commit is contained in:
VladimirMangos 2008-12-07 23:47:28 +03:00
parent a3a57a5390
commit 8eccdbc046
3 changed files with 10 additions and 1 deletions

View file

@ -97,8 +97,14 @@ namespace VMAP
void VMapFactory::clear()
{
if(iIgnoreSpellIds)
{
delete iIgnoreSpellIds;
iIgnoreSpellIds = NULL;
}
if(gVMapManager)
{
delete gVMapManager;
gVMapManager = NULL;
}
}
}