From 46094e524994a0911d4ce6643f124cd7e71c71b0 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 20 Oct 2022 16:28:58 +0200 Subject: [PATCH] Explicitly drop Arc::from_raw --- src/wrapper/clap/wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrapper/clap/wrapper.rs b/src/wrapper/clap/wrapper.rs index ba7dc434..c2dabca3 100644 --- a/src/wrapper/clap/wrapper.rs +++ b/src/wrapper/clap/wrapper.rs @@ -1680,7 +1680,7 @@ impl Wrapper

{ } unsafe extern "C" fn destroy(plugin: *const clap_plugin) { - Arc::from_raw(plugin as *mut Self); + drop(Arc::from_raw(plugin as *mut Self)); } unsafe extern "C" fn activate(