mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Prevent memory leaks
This commit is contained in:
parent
34b7ea6193
commit
bd5fd4ec6e
|
@ -18,7 +18,7 @@ FifoConsole::FifoConsole(IConsole *pConsole)
|
|||
|
||||
FifoConsole::~FifoConsole()
|
||||
{
|
||||
thread_destroy(m_pFifoThread);
|
||||
thread_destroy(m_pFifoThread);
|
||||
}
|
||||
|
||||
void FifoConsole::ListenFifoThread(void *pUser)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue