Fixed the most common crash on exit, still one more hiding and crashing in libc
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user