Fixed some small memory leaks
git-svn-id: http://mc-server.googlecode.com/svn/trunk@148 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
1116cec667
commit
1454d237d1
@ -231,6 +231,11 @@ cClientHandle::~cClientHandle()
|
|||||||
delete *m_pState->PendingNrmSendPackets.begin();
|
delete *m_pState->PendingNrmSendPackets.begin();
|
||||||
m_pState->PendingNrmSendPackets.erase( m_pState->PendingNrmSendPackets.begin() );
|
m_pState->PendingNrmSendPackets.erase( m_pState->PendingNrmSendPackets.begin() );
|
||||||
}
|
}
|
||||||
|
while( !m_pState->PendingLowSendPackets.empty() )
|
||||||
|
{
|
||||||
|
delete *m_pState->PendingLowSendPackets.begin();
|
||||||
|
m_pState->PendingLowSendPackets.erase( m_pState->PendingLowSendPackets.begin() );
|
||||||
|
}
|
||||||
if(m_Player)
|
if(m_Player)
|
||||||
{
|
{
|
||||||
m_Player->SetClientHandle( 0 );
|
m_Player->SetClientHandle( 0 );
|
||||||
|
@ -15,6 +15,12 @@ public:
|
|||||||
, m_World( a_World )
|
, m_World( a_World )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
~FluidData()
|
||||||
|
{
|
||||||
|
delete m_Buffer;
|
||||||
|
delete m_ActiveFluid;
|
||||||
|
}
|
||||||
|
|
||||||
std::vector< Vector3i > GetLowestPoints( int a_X, int a_Y, int a_Z )
|
std::vector< Vector3i > GetLowestPoints( int a_X, int a_Y, int a_Z )
|
||||||
{
|
{
|
||||||
std::vector< Vector3i > Points;
|
std::vector< Vector3i > Points;
|
||||||
|
@ -135,6 +135,8 @@ cWorld::~cWorld()
|
|||||||
delete m_EntitiesCriticalSection; m_EntitiesCriticalSection = 0;
|
delete m_EntitiesCriticalSection; m_EntitiesCriticalSection = 0;
|
||||||
delete m_ChunksCriticalSection; m_ChunksCriticalSection = 0;
|
delete m_ChunksCriticalSection; m_ChunksCriticalSection = 0;
|
||||||
delete m_pState;
|
delete m_pState;
|
||||||
|
|
||||||
|
delete m_WorldGenerator;
|
||||||
}
|
}
|
||||||
|
|
||||||
cWorld::cWorld( const char* a_WorldName )
|
cWorld::cWorld( const char* a_WorldName )
|
||||||
|
Loading…
Reference in New Issue
Block a user