We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94d9063 + c056587 commit a0bdb6dCopy full SHA for a0bdb6d
src/types/user_ptr.rs
@@ -68,7 +68,7 @@ impl<'e, T: Transfer> FromLisp<'e> for &'e T {
68
unsafe extern "C" fn finalize<T: Transfer>(ptr: *mut os::raw::c_void) {
69
#[cfg(build = "debug")]
70
println!("Finalizing {:#?} {}", ptr, T::type_name());
71
- Box::from_raw(ptr as *mut T);
+ drop(Box::from_raw(ptr as *mut T));
72
}
73
74
impl<T: Transfer> IntoLisp<'_> for Box<T> {
0 commit comments