Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion native-windows-gui/src/win32/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ pub fn unbind_event_handler(handler: &EventHandler)
}

callback_ptr = callback_value as *mut *const Callback;
let callback: Rc<Callback> = Rc::from_raw(*callback_ptr);
let callback: Rc<Callback> = Rc::from_raw(*Box::from_raw(callback_ptr));

// Remove the window subclass before dropping the callback to prevent the
// subclass window procedure from being called during the drop.
Expand Down