From 185a890d3ad48c0a8941eacdcb7990518bfd3023 Mon Sep 17 00:00:00 2001 From: noname Date: Sat, 17 Aug 2024 23:29:06 +0900 Subject: [PATCH] Update rust/plugin_wasm_test_motion_minimum/src/lib.rs Co-authored-by: hkrn <129939+hkrn@users.noreply.github.com> --- rust/plugin_wasm_test_motion_minimum/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/plugin_wasm_test_motion_minimum/src/lib.rs b/rust/plugin_wasm_test_motion_minimum/src/lib.rs index 402689d7..b8766754 100644 --- a/rust/plugin_wasm_test_motion_minimum/src/lib.rs +++ b/rust/plugin_wasm_test_motion_minimum/src/lib.rs @@ -337,7 +337,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginMotionIODestroy( .unwrap() ); if !plugin.is_null() { - let _ = Box::from_raw(plugin); + let _ = unsafe { Box::from_raw(plugin) }; } }