fix: Crash on exit due to frame rate limiter thread not being shut down

Fixes #2140
This commit is contained in:
WerWolv 2025-02-25 11:50:38 +01:00
parent 1508efac7a
commit 51547dc941
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ namespace hex {
}
Window::~Window() {
m_frameRateThread.request_stop();
m_frameRateThread.join();
EventProviderDeleted::unsubscribe(this);
RequestCloseImHex::unsubscribe(this);
RequestUpdateWindowTitle::unsubscribe(this);