summaryrefslogtreecommitdiff
path: root/rust/examples
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-04-08 15:05:19 -0400
committerMason Reed <mason@vector35.com>2025-04-08 15:05:19 -0400
commit538565e8b89ed5e2b642c2c27833d9c75a39eb41 (patch)
tree0740cec1eafc573a3b427060c6360640727de583 /rust/examples
parent0f26e9236d52e5e2f0a8e64114d954a516cbeb95 (diff)
Fix workflow Rust API not returning refcounted objects
IDK why this was not done prior, leaking the returned core activity and workflow object.
Diffstat (limited to 'rust/examples')
-rw-r--r--rust/examples/workflow.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/examples/workflow.rs b/rust/examples/workflow.rs
index 59678cad..2d8f0054 100644
--- a/rust/examples/workflow.rs
+++ b/rust/examples/workflow.rs
@@ -53,7 +53,7 @@ pub fn main() {
println!("Registering workflow...");
let old_meta_workflow = Workflow::instance("core.function.metaAnalysis");
- let meta_workflow = old_meta_workflow.clone("core.function.metaAnalysis");
+ let meta_workflow = old_meta_workflow.clone_to("core.function.metaAnalysis");
let activity = Activity::new_with_action(RUST_ACTIVITY_CONFIG, example_activity);
meta_workflow.register_activity(&activity).unwrap();
meta_workflow.insert("core.function.runFunctionRecognizers", [RUST_ACTIVITY_NAME]);