1
0
Fork 0

Explicitly drop Arc::from_raw

This commit is contained in:
Robbert van der Helm 2022-10-20 16:28:58 +02:00
parent f9bdaffc62
commit 46094e5249

View file

@ -1680,7 +1680,7 @@ impl<P: ClapPlugin> Wrapper<P> {
}
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(