Skip to content

Commit a0bdb6d

Browse files
committed
Merge pull request #30 from rustify-emacs/explicit-drop-in-fin
2 parents 94d9063 + c056587 commit a0bdb6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/user_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'e, T: Transfer> FromLisp<'e> for &'e T {
6868
unsafe extern "C" fn finalize<T: Transfer>(ptr: *mut os::raw::c_void) {
6969
#[cfg(build = "debug")]
7070
println!("Finalizing {:#?} {}", ptr, T::type_name());
71-
Box::from_raw(ptr as *mut T);
71+
drop(Box::from_raw(ptr as *mut T));
7272
}
7373

7474
impl<T: Transfer> IntoLisp<'_> for Box<T> {

0 commit comments

Comments
 (0)