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())); }