mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
fix(c-api) Fix a typo.
This commit is contained in:
@@ -68,10 +68,10 @@ pub unsafe extern "C" fn wasm_val_copy(
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn wasm_val_delete(val: Option<&wasm_val_t>) {
|
||||
if let Some(v_inner) = val {
|
||||
pub unsafe extern "C" fn wasm_val_delete(val: Option<Box<wasm_val_t>>) {
|
||||
if let Some(val) = val {
|
||||
// TODO: figure out where wasm_val is allocated first...
|
||||
let _ = Box::from_raw(v_inner);
|
||||
let _ = val;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user