mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
Drop the event callback before exiting on macOS (#1954)
* Drop the event callback before exiting * Update the changelog * Apply suggestion from review Co-authored-by: Markus Røyset <maroider@protonmail.com> * Apply review suggestions Co-authored-by: Markus Røyset <maroider@protonmail.com>
This commit is contained in:
@@ -174,10 +174,12 @@ impl<T> EventLoop<T> {
|
||||
let () = msg_send![app, run];
|
||||
|
||||
if let Some(panic) = self.panic_info.take() {
|
||||
drop(self._callback.take());
|
||||
resume_unwind(panic);
|
||||
}
|
||||
AppState::exit();
|
||||
});
|
||||
drop(self._callback.take());
|
||||
}
|
||||
|
||||
pub fn create_proxy(&self) -> Proxy<T> {
|
||||
|
||||
Reference in New Issue
Block a user