diff --git a/src/vsearchengine.cpp b/src/vsearchengine.cpp index cbd31c25..07994c13 100644 --- a/src/vsearchengine.cpp +++ b/src/vsearchengine.cpp @@ -151,13 +151,16 @@ VSearchEngine::VSearchEngine(QObject *p_parent) VSearchEngine::~VSearchEngine() { + // stop() for (auto const & th : m_workers) { th->stop(); - th->quit(); - th->wait(); - delete th; } - m_workers.clear(); + + // clear() + clearAllWorkers(); + + m_finishedWorkers = 0; + m_result.clear(); }