Qt: Clean up thread before caches

This commit is contained in:
Vicki Pfau 2018-06-24 17:02:09 -07:00
parent 932f2624c0
commit 1079e03464

View File

@ -204,13 +204,13 @@ CoreController::~CoreController() {
stop();
disconnect();
mCoreThreadJoin(&m_threadContext);
if (m_cacheSet) {
mCacheSetDeinit(m_cacheSet.get());
m_cacheSet.reset();
}
mCoreThreadJoin(&m_threadContext);
mCoreConfigDeinit(&m_threadContext.core->config);
m_threadContext.core->deinit(m_threadContext.core);
}