Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -263,6 +263,8 @@ Application::~Application() { · 262 unmodified lines | ||
| 263 | 263 | delete _settings; |
| 264 | 264 | delete _followMode; |
| 265 | 265 | delete _glWidget; |
| 266 | + | |
| 267 | + qDebug() << "DONE... Application::~Application()\n"; | |
| 266 | 268 | } |
| 267 | 269 | |
| 268 | 270 | void Application::restoreSizeAndPosition() { |
| @@ -4435,8 +4437,8 @@ void Application::loadScript() { · 4166 unmodified lines | ||
| 4435 | 4437 | connect(scriptEngine, SIGNAL(finished()), workerThread, SLOT(quit())); |
| 4436 | 4438 | |
| 4437 | 4439 | // when the thread is terminated, add both scriptEngine and thread to the deleteLater queue |
| 4438 | − connect(workerThread, SIGNAL(terminated()), scriptEngine, SLOT(deleteLater())); | |
| 4439 | − connect(workerThread, SIGNAL(terminated()), workerThread, SLOT(deleteLater())); | |
| 4440 | + connect(workerThread, SIGNAL(finished()), scriptEngine, SLOT(deleteLater())); | |
| 4441 | + connect(workerThread, SIGNAL(finished()), workerThread, SLOT(deleteLater())); | |
| 4440 | 4442 | |
| 4441 | 4443 | // when the application is about to quit, stop our script engine so it unwinds properly |
| 4442 | 4444 | connect(this, SIGNAL(aboutToQuit()), scriptEngine, SLOT(stop())); |