This commit is contained in:
Le Tan 2019-01-13 10:58:48 +08:00
parent 3c9c121d91
commit 63379cdfab

View File

@ -151,13 +151,16 @@ VSearchEngine::VSearchEngine(QObject *p_parent)
VSearchEngine::~VSearchEngine() VSearchEngine::~VSearchEngine()
{ {
// stop()
for (auto const & th : m_workers) { for (auto const & th : m_workers) {
th->stop(); th->stop();
th->quit();
th->wait();
delete th;
} }
m_workers.clear();
// clear()
clearAllWorkers();
m_finishedWorkers = 0;
m_result.clear(); m_result.clear();
} }