Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all
Unified · Split
| @@ -171,9 +171,6 @@ void ScriptEngine::runInThread() { · 170 unmodified lines | |||
| 171 | // when the thread is finished, add thread to the deleteLater queue | 171 | // when the thread is finished, add thread to the deleteLater queue |
| 172 | connect(workerThread, &QThread::finished, workerThread, &QThread::deleteLater); | 172 | connect(workerThread, &QThread::finished, workerThread, &QThread::deleteLater); |
| 173 | 173 | ||
| 174 | // when the thread is finished, add scriptEngine to the deleteLater queue | ||
| 175 | connect(workerThread, &QThread::finished, this, &ScriptEngine::deleteLater); | ||
| 176 | |||
| 177 | moveToThread(workerThread); | 174 | moveToThread(workerThread); |
| 178 | 175 | ||
| 179 | // Starts an event loop, and emits workerThread->started() | 176 | // Starts an event loop, and emits workerThread->started() |