summaryrefslogtreecommitdiff
path: root/flowgraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flowgraph.cpp')
-rw-r--r--flowgraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/flowgraph.cpp b/flowgraph.cpp
index 64bfe364..3de9c90e 100644
--- a/flowgraph.cpp
+++ b/flowgraph.cpp
@@ -144,7 +144,7 @@ Ref<Function> FlowGraph::GetFunction() const
BNFunction* func = BNGetFunctionForFlowGraph(m_object);
if (!func)
return nullptr;
- return new Function(BNNewFunctionReference(func));
+ return new Function(func);
}