mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
Fix crash with runner refcell not getting dropped
This commit is contained in:
@@ -239,7 +239,8 @@ impl<T: 'static> EventLoop<T> {
|
||||
}
|
||||
runner!().events_cleared();
|
||||
|
||||
match runner!().control_flow {
|
||||
let control_flow = runner!().control_flow;
|
||||
match control_flow {
|
||||
ControlFlow::Exit => break 'main,
|
||||
ControlFlow::Wait => {
|
||||
if 0 == winuser::GetMessageW(&mut msg, ptr::null_mut(), 0, 0) {
|
||||
|
||||
Reference in New Issue
Block a user