This commit is contained in:
Akash Mozumdar 2018-07-25 01:16:23 -07:00
parent 11016d146a
commit 9c5be4be80
2 changed files with 2 additions and 1 deletions

View File

@ -95,6 +95,7 @@ void MainWindow::RemoveThread(TextThread* thread)
ttCombo->setCurrentIndex(0);
on_ttCombo_activated(0);
}
delete thread;
}
void MainWindow::ThreadOutput(TextThread* thread, QString output)

View File

@ -235,7 +235,7 @@ void RemoveThreads(bool(*RemoveIf)(ThreadParameter, ThreadParameter), ThreadPara
{
if (onRemove) onRemove(i.second);
//delete i.second; // Artikash 7/24/2018: FIXME: Qt GUI updates on another thread, so I can't delete this yet.
i.second->Clear(); // Temp workaround to free some memory.
//i.second->Clear(); // Temp workaround to free some memory.
removedThreads.push_back(i.first);
}
for (auto i : removedThreads) textThreadsByParams.erase(i);