Skip to content

Commit 8174973

Browse files
authored
Merge pull request #1504 from alexcrichton/fix-drop-ref-showing-up
Fix `__wbindgen_object_drop_ref` unnecessary bindings
2 parents c127ef7 + c96e3ce commit 8174973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/anyref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub extern fn __wbindgen_anyref_table_dealloc(idx: usize) {
201201
#[no_mangle]
202202
pub unsafe extern fn __wbindgen_drop_anyref_slice(ptr: *mut JsValue, len: usize) {
203203
for slot in slice::from_raw_parts_mut(ptr, len) {
204-
ptr::drop_in_place(slot);
204+
__wbindgen_anyref_table_dealloc(slot.idx as usize);
205205
}
206206
}
207207

0 commit comments

Comments
 (0)