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:
parent
c3003a763f
commit
13a036893e
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user