From 538565e8b89ed5e2b642c2c27833d9c75a39eb41 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 8 Apr 2025 15:05:19 -0400 Subject: Fix workflow Rust API not returning refcounted objects IDK why this was not done prior, leaking the returned core activity and workflow object. --- rust/examples/workflow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/examples') 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]); -- cgit v1.3.1