summaryrefslogtreecommitdiff
path: root/flowgraph.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2019-04-26 15:03:28 -0400
committerRusty Wagner <rusty@vector35.com>2019-04-26 15:03:28 -0400
commit0911788d1183d061eabe1d9084d4eb866c032938 (patch)
treee8227c49b971983bdaf9939b7795c27995e530b4 /flowgraph.cpp
parent893e730742452a041f26501b30e95e46d4363ec1 (diff)
Fix reference leak in FlowGraph::GetFunction
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);
}