From d5a15419e98cf31c173fff5a10f97e36958d994f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 5 Nov 2020 04:11:49 +0100 Subject: Drop `UserInterface` manually after exit request --- glutin/src/application.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'glutin') diff --git a/glutin/src/application.rs b/glutin/src/application.rs index b8e80ddf..0f748ecb 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -300,6 +300,9 @@ async fn run_instance( _ => {} } } + + // Manually drop the user interface + drop(ManuallyDrop::into_inner(user_interface)); } fn build_user_interface<'a, A: Application>( -- cgit