fix: GLFW error on exit

This commit is contained in:
WerWolv
2022-08-03 10:45:50 +02:00
parent 0ac8fcd1eb
commit ace25d353b
3 changed files with 10 additions and 3 deletions

View File

@@ -160,14 +160,14 @@ namespace hex {
}
Window::~Window() {
this->exitImGui();
this->exitGLFW();
EventManager::unsubscribe<EventProviderDeleted>(this);
EventManager::unsubscribe<RequestCloseImHex>(this);
EventManager::unsubscribe<RequestChangeWindowTitle>(this);
EventManager::unsubscribe<EventAbnormalTermination>(this);
EventManager::unsubscribe<RequestOpenPopup>(this);
this->exitImGui();
this->exitGLFW();
}
void Window::loop() {