Prevent memory leaks

This commit is contained in:
def 2013-08-06 05:14:53 +02:00
parent 34b7ea6193
commit bd5fd4ec6e
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ FifoConsole::FifoConsole(IConsole *pConsole)
FifoConsole::~FifoConsole()
{
thread_destroy(m_pFifoThread);
thread_destroy(m_pFifoThread);
}
void FifoConsole::ListenFifoThread(void *pUser)

View file

@ -328,11 +328,11 @@ bool IGameController::OnEntity(int Index, vec2 Pos, int Layer, int Flags, int Nu
}
else if(Index >= ENTITY_DRAGGER_WEAK && Index <= ENTITY_DRAGGER_STRONG)
{
new CDraggerTeam(&GameServer()->m_World, Pos, Index - ENTITY_DRAGGER_WEAK + 1, false, Layer, Number);
CDraggerTeam(&GameServer()->m_World, Pos, Index - ENTITY_DRAGGER_WEAK + 1, false, Layer, Number);
}
else if(Index >= ENTITY_DRAGGER_WEAK_NW && Index <= ENTITY_DRAGGER_STRONG_NW)
{
new CDraggerTeam(&GameServer()->m_World, Pos, Index - ENTITY_DRAGGER_WEAK_NW + 1, true, Layer, Number);
CDraggerTeam(&GameServer()->m_World, Pos, Index - ENTITY_DRAGGER_WEAK_NW + 1, true, Layer, Number);
}
else if(Index == ENTITY_PLASMAE)
{