Try to fix add-ons related crash at exit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6051 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -245,7 +245,7 @@ void * MainMenuScreen::downloadNews( void * pthis)
|
||||
#endif
|
||||
// ------------------------------------------------------------------------------------------------------
|
||||
#ifdef ADDONS_MANAGER
|
||||
MainMenuScreen::~MainMenuScreen()
|
||||
void MainMenuScreen::tearDown()
|
||||
{
|
||||
fprintf(stdout, "canceling the thread");
|
||||
pthread_cancel(m_thread_news_text);
|
||||
|
||||
@@ -36,10 +36,12 @@ public:
|
||||
void changeNewsText(std::string action);
|
||||
pthread_mutex_t m_mutex_news_text;
|
||||
pthread_t m_thread_news_text;
|
||||
~MainMenuScreen();
|
||||
|
||||
std::string m_news_text;
|
||||
void onUpdate(float delta, irr::video::IVideoDriver* driver);
|
||||
virtual void onUpdate(float delta, irr::video::IVideoDriver* driver);
|
||||
virtual void tearDown();
|
||||
#endif
|
||||
|
||||
/** \brief implement callback from parent class GUIEngine::Screen */
|
||||
virtual void loadedFromFile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user