Skip to content

Commit

Permalink
Add missing UnregisterNotification call
Browse files Browse the repository at this point in the history
  • Loading branch information
negasora committed Jul 3, 2024
1 parent ac338b6 commit 3831fa3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/debuggercontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ DebuggerController::DebuggerController(BinaryViewRef data)

DebuggerController::~DebuggerController()
{
m_data->UnregisterNotification(this);
m_file = nullptr;

if (m_state)
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -1742,7 +1743,7 @@ std::vector<DebugProcess> DebuggerController::GetProcessList()
if (!CreateDebugAdapter())
return {};
}

return m_adapter->GetProcessList();
}

Expand Down

0 comments on commit 3831fa3

Please sign in to comment.