mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Console: Can't deallocate temp entries, so don't even try
This commit is contained in:
parent
ab9912c9c1
commit
b91530eedc
|
@ -862,6 +862,8 @@ CConsole::~CConsole()
|
|||
CCommand *pNext = pCommand->m_pNext;
|
||||
if(pCommand->m_pfnCallback == Con_Chain)
|
||||
delete static_cast<CChain *>(pCommand->m_pUserData);
|
||||
// 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