From 3831fa303a9d6fdb94bd9de35ffbcf75dd63839a Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 3 Jul 2024 15:47:38 -0400 Subject: [PATCH] Add missing UnregisterNotification call --- core/debuggercontroller.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/debuggercontroller.cpp b/core/debuggercontroller.cpp index f7ea167..f3c964b 100644 --- a/core/debuggercontroller.cpp +++ b/core/debuggercontroller.cpp @@ -41,6 +41,7 @@ DebuggerController::DebuggerController(BinaryViewRef data) DebuggerController::~DebuggerController() { + m_data->UnregisterNotification(this); m_file = nullptr; if (m_state) @@ -1126,7 +1127,7 @@ bool DebuggerController::ResumeThread(std::uint32_t tid) auto result = m_state->GetThreads()->ResumeThread(tid); if (!result) return false; - + DebuggerEvent event; event.type = ThreadStateChangedEvent; PostDebuggerEvent(event); @@ -1742,7 +1743,7 @@ std::vector DebuggerController::GetProcessList() if (!CreateDebugAdapter()) return {}; } - + return m_adapter->GetProcessList(); }