diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 5e3e09e778..2fe8677e1e 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1682,6 +1682,10 @@ Application::~Application() { _physicsEngine->setCharacterController(nullptr); + // the _shapeManager should have zero references + _shapeManager.collectGarbage(); + assert(_shapeManager.getNumShapes() == 0); + // shutdown render engine _main3DScene = nullptr; _renderEngine = nullptr;