From 4768c340a6d7337f7b1984abee791b3b5dcd2f27 Mon Sep 17 00:00:00 2001 From: Nomango Date: Tue, 30 Jul 2019 15:35:47 +0800 Subject: [PATCH] destroy all instances before exit minor --- kiwano/platform/Application.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kiwano/platform/Application.cpp b/kiwano/platform/Application.cpp index 481fd2bf..5c79b207 100644 --- a/kiwano/platform/Application.cpp +++ b/kiwano/platform/Application.cpp @@ -143,7 +143,14 @@ namespace kiwano { (*iter)->DestroyComponent(); } + components_.clear(); } + + // Destroy all instances + Renderer::Destroy(); + Input::Destroy(); + Window::Destroy(); + Logger::Destroy(); } void Application::Use(Component* component)