Fixed memory leak.
This commit is contained in:
parent
6cf4d381ee
commit
6ffb30d63a
@ -274,7 +274,10 @@ void* SFXManager::mainLoop(void *obj)
|
||||
me->m_sfx_commands.getData().erase(me->m_sfx_commands.getData().begin());
|
||||
|
||||
if (current->m_command == SFX_EXIT)
|
||||
{
|
||||
delete current;
|
||||
break;
|
||||
}
|
||||
me->m_sfx_commands.unlock();
|
||||
switch(current->m_command)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user