diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-04-26 15:03:28 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2019-04-26 15:03:28 -0400 |
| commit | 0911788d1183d061eabe1d9084d4eb866c032938 (patch) | |
| tree | e8227c49b971983bdaf9939b7795c27995e530b4 /flowgraph.cpp | |
| parent | 893e730742452a041f26501b30e95e46d4363ec1 (diff) | |
Fix reference leak in FlowGraph::GetFunction
Diffstat (limited to 'flowgraph.cpp')
| -rw-r--r-- | flowgraph.cpp | 2 |
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); } |
