Fixed the most common crash on exit, still one more hiding and crashing in libc

This commit is contained in:
2018-02-17 14:54:43 -08:00
parent d6bdcbdeca
commit c17d937ee5
13 changed files with 37 additions and 13 deletions

View File

@@ -18,6 +18,11 @@ Application::Application() {
Application::~Application() {
if (window.unique())
window.reset();
else {
Logger::log("Can't release window, shared_ptr coun : " + window.use_count(), Logger::LogLevel::WARN);
}
//light_handle->~LightHandle();
//light_controller->~LightController();
}