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 4f163af commit 25519e5Copy full SHA for 25519e5
src/libpanic_unwind/emcc.rs
@@ -88,8 +88,12 @@ cfg_if::cfg_if! {
88
}
89
extern "C" fn exception_cleanup(ptr: *mut libc::c_void) -> DestructorRet {
90
unsafe {
91
- ptr::drop_in_place(ptr as *mut Exception);
92
- super::__rust_drop_panic();
+ if let Some(b) = (ptr as *mut Exception).read().data {
+ drop(b);
93
+ super::__rust_drop_panic();
94
+ }
95
+ #[cfg(any(target_arch = "arm", target_arch = "wasm32"))]
96
+ ptr
97
98
99
0 commit comments