Some minor fixes.

This commit is contained in:
H0zen 2015-12-23 21:05:55 +02:00
parent a13b03a91a
commit 4b13b0bf18
2 changed files with 5 additions and 3 deletions

View File

@ -286,7 +286,7 @@ class TerrainInfo : public Referencable<AtomicLong>
};
// class for managing TerrainData object and all sort of geometry querying operations
class TerrainManager : public MaNGOS::Singleton<TerrainManager>, MaNGOS::ClassLevelLockable<TerrainManager, ACE_Thread_Mutex>
class TerrainManager : public MaNGOS::Singleton<TerrainManager, MaNGOS::ClassLevelLockable<TerrainManager, ACE_Thread_Mutex> >
{
typedef UNORDERED_MAP<uint32, TerrainInfo*> TerrainDataMap;
friend class MaNGOS::OperatorNew<TerrainManager>;

View File

@ -151,12 +151,14 @@ World::~World()
while (cliCmdQueue.next(command))
{ delete command; }
WorldSession* session = NULL;
while (addSessQueue.next(session))
{ delete session; }
VMAP::VMapFactory::clear();
MMAP::MMapFactory::clear();
delete m_configForceLoadMapIds;
// TODO free addSessQueue
}
/// Cleanups before world stop