mirror of https://github.com/mgba-emu/mgba.git
Qt: Clean up thread before caches
This commit is contained in:
parent
932f2624c0
commit
1079e03464
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue