Fixed minor memory leak (QUIT request was not freed).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9978 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-10-13 22:39:52 +00:00
parent c3003a763f
commit 13a036893e

View File

@ -170,7 +170,14 @@ void *NetworkHttp::mainLoop(void *obj)
me->m_current_request->getPriority());
}
if(me->m_current_request->getCommand()==Request::HC_QUIT)
{
if(me->m_current_request->manageMemory())
{
delete me->m_current_request;
me->m_current_request = NULL;
}
break;
}
CURLcode status=CURLE_OK;
switch(me->m_current_request->getCommand())
{