History

Fix crash on shutdown due to lifetime of scripts

Brad Davis committed 10 years ago

Commit 55af5ea1 parent 8619be23 files · +12 −4Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+0−3
@@ -171,9 +171,6 @@ void ScriptEngine::runInThread() { · 170 unmodified lines
171171 // when the thread is finished, add thread to the deleteLater queue
172172 connect(workerThread, &QThread::finished, workerThread, &QThread::deleteLater);
173173
174− // when the thread is finished, add scriptEngine to the deleteLater queue
175− connect(workerThread, &QThread::finished, this, &ScriptEngine::deleteLater);
176−
177174 moveToThread(workerThread);
178175
179176 // Starts an event loop, and emits workerThread->started()