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.
1 parent 94d9063 commit c056587Copy full SHA for c056587
src/types/user_ptr.rs
@@ -4,6 +4,7 @@ use std::{
4
cell::RefCell,
5
rc::Rc,
6
sync::{Mutex, RwLock, Arc},
7
+ mem::drop,
8
};
9
10
use emacs_module::emacs_finalizer_function;
@@ -68,7 +69,7 @@ impl<'e, T: Transfer> FromLisp<'e> for &'e T {
68
69
unsafe extern "C" fn finalize<T: Transfer>(ptr: *mut os::raw::c_void) {
70
#[cfg(build = "debug")]
71
println!("Finalizing {:#?} {}", ptr, T::type_name());
- Box::from_raw(ptr as *mut T);
72
+ drop(Box::from_raw(ptr as *mut T));
73
}
74
75
impl<T: Transfer> IntoLisp<'_> for Box<T> {
0 commit comments