mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 22:37:05 +00:00
[6886] Prevent some memory losses at server shutdown.
This commit is contained in:
parent
a3a57a5390
commit
8eccdbc046
3 changed files with 10 additions and 1 deletions
|
|
@ -97,8 +97,14 @@ namespace VMAP
|
|||
void VMapFactory::clear()
|
||||
{
|
||||
if(iIgnoreSpellIds)
|
||||
{
|
||||
delete iIgnoreSpellIds;
|
||||
iIgnoreSpellIds = NULL;
|
||||
}
|
||||
if(gVMapManager)
|
||||
{
|
||||
delete gVMapManager;
|
||||
gVMapManager = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue