Merge pull request #12183 from SamGondelman/pointerCrash

Destroy PointerManager before PickManager
This commit is contained in:
Brad Hefta-Gaub 2018-01-18 14:58:20 -08:00 committed by GitHub
commit c9cedcb2c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2093,6 +2093,11 @@ void Application::cleanupBeforeQuit() {
DependencyManager::destroy<AudioInjectorManager>();
DependencyManager::destroy<AudioScriptingInterface>();
// The PointerManager must be destroyed before the PickManager because when a Pointer is deleted,
// it accesses the PickManager to delete its associated Pick
DependencyManager::destroy<PointerManager>();
DependencyManager::destroy<PickManager>();
qCDebug(interfaceapp) << "Application::cleanupBeforeQuit() complete";
}