From 2368d3cc2c6d5ddddcc7a38cd59055e353b46d64 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Tue, 12 Sep 2023 12:52:59 +0800 Subject: [PATCH] Properly increase the ref count of the binary view in DebuggerController::SetData() --- api/debuggercontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/debuggercontroller.cpp b/api/debuggercontroller.cpp index 5dfb922..23bcaae 100644 --- a/api/debuggercontroller.cpp +++ b/api/debuggercontroller.cpp @@ -68,7 +68,7 @@ Ref DebuggerController::GetData() void DebuggerController::SetData(const Ref& data) { - BNDebuggerSetData(m_object, data->GetObject()); + BNDebuggerSetData(m_object, BNNewViewReference(data->GetObject())); }