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. --- plugins/warp/src/plugin/workflow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/warp/src/plugin') diff --git a/plugins/warp/src/plugin/workflow.rs b/plugins/warp/src/plugin/workflow.rs index ebe070f6..5a857fbb 100644 --- a/plugins/warp/src/plugin/workflow.rs +++ b/plugins/warp/src/plugin/workflow.rs @@ -80,7 +80,7 @@ pub fn insert_workflow() { }; let old_function_meta_workflow = Workflow::instance("core.function.metaAnalysis"); - let function_meta_workflow = old_function_meta_workflow.clone("core.function.metaAnalysis"); + let function_meta_workflow = old_function_meta_workflow.clone_to("core.function.metaAnalysis"); let guid_activity = Activity::new_with_action(GUID_ACTIVITY_CONFIG, guid_activity); function_meta_workflow .register_activity(&guid_activity) @@ -89,7 +89,7 @@ pub fn insert_workflow() { function_meta_workflow.register().unwrap(); let old_module_meta_workflow = Workflow::instance("core.module.metaAnalysis"); - let module_meta_workflow = old_module_meta_workflow.clone("core.module.metaAnalysis"); + let module_meta_workflow = old_module_meta_workflow.clone_to("core.module.metaAnalysis"); let matcher_activity = Activity::new_with_action(MATCHER_ACTIVITY_CONFIG, matcher_activity); module_meta_workflow .register_activity(&matcher_activity) -- cgit v1.3.1