From 36c17d53715f62c23f2092987837d9b13bd73bc7 Mon Sep 17 00:00:00 2001 From: FalseHonesty Date: Tue, 13 Apr 2021 17:04:46 -0400 Subject: [PATCH] HackStudio: Clean up debugger thread when debugger exits Fixes #4393 :^) --- Userland/DevTools/HackStudio/HackStudioWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index ef0d683d0d..bd07cc2e56 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -676,6 +676,7 @@ void HackStudioWidget::initialize_debugger() m_debug_info_widget->program_stopped(); m_disassembly_widget->program_stopped(); m_stop_action->set_enabled(false); + m_debugger_thread.clear(); HackStudioWidget::hide_action_tabs(); GUI::MessageBox::show(window(), "Program Exited", "Debugger", GUI::MessageBox::Type::Information); }));