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:
auria
2010-09-18 22:26:13 +00:00
parent 5e4a9617ad
commit 77f85f61cb
2 changed files with 5 additions and 3 deletions

View File

@@ -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);

View File

@@ -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();