From c974c4257d54fa96c9adc54bbed24b14b9181acf Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 25 Feb 2025 11:50:38 +0100 Subject: [PATCH] fix: Crash on exit due to frame rate limiter thread not being shut down Fixes #2140 --- main/gui/source/window/window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index 8ae8c4117..856a6b53b 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -100,6 +100,9 @@ namespace hex { } Window::~Window() { + m_frameRateThread.request_stop(); + m_frameRateThread.join(); + EventProviderDeleted::unsubscribe(this); RequestCloseImHex::unsubscribe(this); RequestUpdateWindowTitle::unsubscribe(this);