Skip to content

Commit

Permalink
Properly increase the ref count of the binary view in DebuggerControl…
Browse files Browse the repository at this point in the history
…ler::SetData()
  • Loading branch information
xusheng6 authored and plafosse committed Sep 12, 2023
1 parent 7bc455c commit 2368d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/debuggercontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Ref<BinaryView> DebuggerController::GetData()

void DebuggerController::SetData(const Ref<BinaryView>& data)
{
BNDebuggerSetData(m_object, data->GetObject());
BNDebuggerSetData(m_object, BNNewViewReference(data->GetObject()));
}


Expand Down

0 comments on commit 2368d3c

Please sign in to comment.