Drop UserInterface manually after exit request
This commit is contained in:
parent
6619fab044
commit
d5a15419e9
2 changed files with 6 additions and 0 deletions
|
|
@ -300,6 +300,9 @@ async fn run_instance<A, E, C>(
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Manually drop the user interface
|
||||||
|
drop(ManuallyDrop::into_inner(user_interface));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn build_user_interface<'a, A: Application>(
|
fn build_user_interface<'a, A: Application>(
|
||||||
|
|
|
||||||
|
|
@ -383,6 +383,9 @@ async fn run_instance<A, E, C>(
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Manually drop the user interface
|
||||||
|
drop(ManuallyDrop::into_inner(user_interface));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if the provided event should cause the [`Application`] to
|
/// Returns true if the provided event should cause the [`Application`] to
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue