Delete thread when it's cleaned up, not automatically

This commit is contained in:
baldurk
2016-10-11 18:32:34 +02:00
parent 6b99f40b2b
commit b4b45835b0
2 changed files with 1 additions and 3 deletions
-1
View File
@@ -235,7 +235,6 @@ public slots:
{
m_func();
m_Thread->quit();
deleteLater();
m_Thread->deleteLater();
m_Thread = NULL;
}
+1 -2
View File
@@ -94,8 +94,7 @@ void RenderManager::CloseThread()
{
}
// the thread deletes itself, don't delete here
m_Thread->deleteLater();
m_Thread = NULL;
}