mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 23:00:05 -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();
|
runner!().events_cleared();
|
||||||
|
|
||||||
match runner!().control_flow {
|
let control_flow = runner!().control_flow;
|
||||||
|
match control_flow {
|
||||||
ControlFlow::Exit => break 'main,
|
ControlFlow::Exit => break 'main,
|
||||||
ControlFlow::Wait => {
|
ControlFlow::Wait => {
|
||||||
if 0 == winuser::GetMessageW(&mut msg, ptr::null_mut(), 0, 0) {
|
if 0 == winuser::GetMessageW(&mut msg, ptr::null_mut(), 0, 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user