destroy all instances before exit

minor
This commit is contained in:
Nomango 2019-07-30 15:35:47 +08:00
parent d153f31a74
commit 4768c340a6
1 changed files with 7 additions and 0 deletions

View File

@ -143,7 +143,14 @@ namespace kiwano
{ {
(*iter)->DestroyComponent(); (*iter)->DestroyComponent();
} }
components_.clear();
} }
// Destroy all instances
Renderer::Destroy();
Input::Destroy();
Window::Destroy();
Logger::Destroy();
} }
void Application::Use(Component* component) void Application::Use(Component* component)