mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-14 09:21:20 +00:00
Fixed import func to be mutable
This commit is contained in:
@ -1241,7 +1241,7 @@ pub unsafe extern "C" fn wasmer_import_func_returns_arity(
|
|||||||
/// Frees memory for the given Func
|
/// Frees memory for the given Func
|
||||||
#[allow(clippy::cast_ptr_alignment)]
|
#[allow(clippy::cast_ptr_alignment)]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn wasmer_import_func_destroy(func: *const wasmer_import_func_t) {
|
pub extern "C" fn wasmer_import_func_destroy(func: *mut wasmer_import_func_t) {
|
||||||
if !func.is_null() {
|
if !func.is_null() {
|
||||||
drop(unsafe { Box::from_raw(func as *mut Export) });
|
drop(unsafe { Box::from_raw(func as *mut Export) });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user