From 45f0486d048784937cbbd77652c4f13bb9098beb Mon Sep 17 00:00:00 2001 From: noname Date: Sat, 17 Aug 2024 23:28:11 +0900 Subject: [PATCH 1/6] Update rust/plugin_wasm/src/model/c_api.rs Co-authored-by: hkrn <129939+hkrn@users.noreply.github.com> --- rust/plugin_wasm/src/model/c_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/plugin_wasm/src/model/c_api.rs b/rust/plugin_wasm/src/model/c_api.rs index a432b593..c3816d0b 100644 --- a/rust/plugin_wasm/src/model/c_api.rs +++ b/rust/plugin_wasm/src/model/c_api.rs @@ -733,7 +733,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginModelIODestroy( plugin: *mut nanoem_application_plugin_model_io_t, ) { if !plugin.is_null() { - let _ = Box::from_raw(plugin); + let _ = unsafe { Box::from_raw(plugin) }; } } From ab23d7fa5f2a3f52b0961fb33a2c36d6acb94a05 Mon Sep 17 00:00:00 2001 From: noname Date: Sat, 17 Aug 2024 23:28:17 +0900 Subject: [PATCH 2/6] Update rust/plugin_wasm/src/motion/c_api.rs Co-authored-by: hkrn <129939+hkrn@users.noreply.github.com> --- rust/plugin_wasm/src/motion/c_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/plugin_wasm/src/motion/c_api.rs b/rust/plugin_wasm/src/motion/c_api.rs index 01313706..1d31bec0 100644 --- a/rust/plugin_wasm/src/motion/c_api.rs +++ b/rust/plugin_wasm/src/motion/c_api.rs @@ -714,7 +714,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginMotionIODestroy( plugin: *mut nanoem_application_plugin_motion_io_t, ) { if !plugin.is_null() { - let _ = Box::from_raw(plugin); + let _ = unsafe { Box::from_raw(plugin) }; } } From 16bf1168f1dbe46b9bc5d97fce03475b89a82aad Mon Sep 17 00:00:00 2001 From: noname Date: Sat, 17 Aug 2024 23:28:23 +0900 Subject: [PATCH 3/6] Update rust/plugin_wasm_test_model_full/src/lib.rs Co-authored-by: hkrn <129939+hkrn@users.noreply.github.com> --- rust/plugin_wasm_test_model_full/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/plugin_wasm_test_model_full/src/lib.rs b/rust/plugin_wasm_test_model_full/src/lib.rs index a8f568a7..38444d58 100644 --- a/rust/plugin_wasm_test_model_full/src/lib.rs +++ b/rust/plugin_wasm_test_model_full/src/lib.rs @@ -804,7 +804,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginModelIODestroy( .unwrap() ); if !plugin.is_null() { - let _ = Box::from_raw(plugin); + let _ = unsafe { Box::from_raw(plugin) }; } } From 65747f6a0b815e4031f886b4c066ff3bca9de66d Mon Sep 17 00:00:00 2001 From: noname Date: Sat, 17 Aug 2024 23:28:34 +0900 Subject: [PATCH 4/6] Update rust/plugin_wasm_test_model_minimum/src/lib.rs Co-authored-by: hkrn <129939+hkrn@users.noreply.github.com> --- rust/plugin_wasm_test_model_minimum/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/plugin_wasm_test_model_minimum/src/lib.rs b/rust/plugin_wasm_test_model_minimum/src/lib.rs index 76599323..02fa82d2 100644 --- a/rust/plugin_wasm_test_model_minimum/src/lib.rs +++ b/rust/plugin_wasm_test_model_minimum/src/lib.rs @@ -319,7 +319,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginModelIODestroy( .unwrap() ); if !plugin.is_null() { - let _ = Box::from_raw(plugin); + let _ = unsafe { Box::from_raw(plugin) }; } } From 598b5faace350154f1c5c636c6b67c989add1947 Mon Sep 17 00:00:00 2001 From: noname Date: Sat, 17 Aug 2024 23:28:59 +0900 Subject: [PATCH 5/6] Update rust/plugin_wasm_test_motion_full/src/lib.rs Co-authored-by: hkrn <129939+hkrn@users.noreply.github.com> --- rust/plugin_wasm_test_motion_full/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/plugin_wasm_test_motion_full/src/lib.rs b/rust/plugin_wasm_test_motion_full/src/lib.rs index e9d9aa3b..f3a7ebe8 100644 --- a/rust/plugin_wasm_test_motion_full/src/lib.rs +++ b/rust/plugin_wasm_test_motion_full/src/lib.rs @@ -785,7 +785,7 @@ pub unsafe extern "C" fn nanoemApplicationPluginMotionIODestroy( .unwrap() ); if !plugin.is_null() { - let _ = Box::from_raw(plugin); + let _ = unsafe { Box::from_raw(plugin) }; } } From 185a890d3ad48c0a8941eacdcb7990518bfd3023 Mon Sep 17 00:00:00 2001 From: noname Date: Sat, 17 Aug 2024 23:29:06 +0900 Subject: [PATCH 6/6] 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) }; } }