summaryrefslogtreecommitdiff
path: root/plugins/warp/src/plugin
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 /plugins/warp/src/plugin
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 'plugins/warp/src/plugin')
-rw-r--r--plugins/warp/src/plugin/workflow.rs4
1 files changed, 2 insertions, 2 deletions
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)