Destroy GeometryCache explicitly in Application destructor

This commit is contained in:
sabrina-shanman 2018-06-29 10:39:16 -07:00
parent 8cbe5e4541
commit 9dc03f5013
2 changed files with 1 additions and 2 deletions

View file

@ -2565,6 +2565,7 @@ Application::~Application() {
DependencyManager::destroy<ScriptCache>();
DependencyManager::destroy<SoundCache>();
DependencyManager::destroy<OctreeStatsProvider>();
DependencyManager::destroy<GeometryCache>();
DependencyManager::get<ResourceManager>()->cleanup();

View file

@ -50,8 +50,6 @@ ApplicationOverlay::~ApplicationOverlay() {
geometryCache->releaseID(_magnifierBorder);
geometryCache->releaseID(_qmlGeometryId);
}
DependencyManager::destroy<GeometryCache>();
}
// Renders the overlays either to a texture or to the screen