From 4e2fbc2b9ad3b45b47b803b8e0ffd8e3dcdf29ec Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Mon, 22 Apr 2024 10:43:00 -0300 Subject: only create FlowGraph with Ref --- rust/src/binaryview.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/binaryview.rs') diff --git a/rust/src/binaryview.rs b/rust/src/binaryview.rs index 33fd9881..6e510694 100644 --- a/rust/src/binaryview.rs +++ b/rust/src/binaryview.rs @@ -1064,7 +1064,7 @@ pub trait BinaryViewExt: BinaryViewBase { unsafe { BNApplyDebugInfo(self.as_ref().handle, debug_info.handle) } } - fn show_graph_report(&self, raw_name: S, graph: FlowGraph) { + fn show_graph_report(&self, raw_name: S, graph: &FlowGraph) { let raw_name = raw_name.into_bytes_with_nul(); unsafe { BNShowGraphReport( -- cgit v1.3.1