mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Console: Can't deallocate temp entries, so don't even try
This commit is contained in:
parent
ab9912c9c1
commit
b91530eedc
|
@ -862,7 +862,9 @@ CConsole::~CConsole()
|
|||
CCommand *pNext = pCommand->m_pNext;
|
||||
if(pCommand->m_pfnCallback == Con_Chain)
|
||||
delete static_cast<CChain *>(pCommand->m_pUserData);
|
||||
delete pCommand;
|
||||
// Temp commands are on m_TempCommands heap, so don't delete them
|
||||
if(!pCommand->m_Temp)
|
||||
delete pCommand;
|
||||
pCommand = pNext;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue