Drop UserInterface manually after exit request

This commit is contained in:
Héctor Ramón Jiménez 2020-11-05 04:11:49 +01:00
parent 6619fab044
commit d5a15419e9
2 changed files with 6 additions and 0 deletions

View File

@ -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>(

View File

@ -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