Fix memory leak.

This commit is contained in:
hiker 2014-12-15 10:58:23 +11:00
parent 22b26dc985
commit f48f20da94

View File

@ -207,7 +207,10 @@ namespace Online
me->m_request_queue.getData().pop(); me->m_request_queue.getData().pop();
if (me->m_current_request->getType() == Request::RT_QUIT) if (me->m_current_request->getType() == Request::RT_QUIT)
{
delete me->m_current_request;
break; break;
}
me->m_request_queue.unlock(); me->m_request_queue.unlock();
me->m_current_request->execute(); me->m_current_request->execute();