mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +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
|
|
@ -125,6 +125,9 @@ World::~World()
|
||||||
|
|
||||||
m_weathers.clear();
|
m_weathers.clear();
|
||||||
|
|
||||||
|
while (!cliCmdQueue.empty())
|
||||||
|
delete cliCmdQueue.next();
|
||||||
|
|
||||||
VMAP::VMapFactory::clear();
|
VMAP::VMapFactory::clear();
|
||||||
|
|
||||||
if(m_resultQueue) delete m_resultQueue;
|
if(m_resultQueue) delete m_resultQueue;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "6885"
|
#define REVISION_NR "6886"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
|
|
@ -97,8 +97,14 @@ namespace VMAP
|
||||||
void VMapFactory::clear()
|
void VMapFactory::clear()
|
||||||
{
|
{
|
||||||
if(iIgnoreSpellIds)
|
if(iIgnoreSpellIds)
|
||||||
|
{
|
||||||
delete iIgnoreSpellIds;
|
delete iIgnoreSpellIds;
|
||||||
|
iIgnoreSpellIds = NULL;
|
||||||
|
}
|
||||||
if(gVMapManager)
|
if(gVMapManager)
|
||||||
|
{
|
||||||
delete gVMapManager;
|
delete gVMapManager;
|
||||||
|
gVMapManager = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue