Fix crashes on exit due to poor cleanup
Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1077,6 +1077,11 @@ void Application::initializeUi() { · 1076 unmodified lines | |||
| 1077 | } | 1077 | } |
| 1078 | 1078 | ||
| 1079 | void Application::paintGL() { | 1079 | void Application::paintGL() { |
| 1080 | // paintGL uses a queued connection, so we can get messages from the queue even after we've quit | ||
| 1081 | // and the plugins have shutdown | ||
| 1082 | if (_aboutToQuit) { | ||
| 1083 | return; | ||
| 1084 | } | ||
| 1080 | _frameCount++; | 1085 | _frameCount++; |
| 1081 | 1086 | ||
| 1082 | // update fps moving average | 1087 | // update fps moving average |