[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

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "6885"
#define REVISION_NR "6886"
#endif // __REVISION_NR_H__

View file

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