Fixed crash in forums and channels when switching fast between forums/channels.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5534 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-09-10 10:34:49 +00:00
parent bcb76154f7
commit 9049440253
2 changed files with 6 additions and 4 deletions

View File

@ -462,9 +462,10 @@ void ChannelFeed::updateChannelMsgs()
std::cerr << "ChannelFeed::updateChannelMsgs() stop current fill thread" << std::endl;
#endif
// stop current fill thread
fillThread->stop();
delete(fillThread);
ChannelFillThread *thread = fillThread;
fillThread = NULL;
thread->stop();
delete(thread);
progressLabel->hide();
progressBar->hide();

View File

@ -859,9 +859,10 @@ void ForumsDialog::insertThreads()
std::cerr << "ForumsDialog::insertThreads() stop current fill thread" << std::endl;
#endif
// stop current fill thread
fillThread->stop();
delete(fillThread);
ForumsFillThread *thread = fillThread;
fillThread = NULL;
thread->stop();
delete(thread);
ui.progressBar->hide();
ui.progLayOutTxt->hide();