Fixed memory leak.

This commit is contained in:
hiker 2014-12-14 12:04:48 +11:00
parent 6cf4d381ee
commit 6ffb30d63a

View File

@ -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)
{