small clean up improvement

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
unitraxx 2013-09-12 02:44:52 +00:00
parent 5ba1493990
commit e71d99aa2d
3 changed files with 3 additions and 3 deletions

View File

@ -1244,6 +1244,7 @@ void cleanSuperTuxKart()
INetworkHttp::get()->stopNetworkThread();
if(Online::HTTPManager::isRunning())
Online::HTTPManager::get()->stopNetworkThread();
//delete in reverse order of what they were created in.
//see InitTuxkart()
Online::ServersManager::deallocate();
@ -1252,7 +1253,6 @@ void cleanSuperTuxKart()
Online::CurrentUser::deallocate();
GUIEngine::DialogQueue::deallocate();
Referee::cleanup();
if(ReplayPlay::get()) ReplayPlay::destroy();
if(race_manager) delete race_manager;

View File

@ -221,7 +221,7 @@ namespace Online{
delete request;
}
me->m_request_queue.unlock();
HTTPManager::deallocate();
pthread_exit(NULL);
return 0;
} // mainLoop

View File

@ -77,6 +77,7 @@ namespace Online{
static void *mainLoop(void *obj);
void startNetworkThread();
static void deallocate();
HTTPManager(); //const std::string &url
~HTTPManager();
@ -86,7 +87,6 @@ namespace Online{
// singleton
static HTTPManager* get();
static void deallocate();
static bool isRunning();
//Execute