main: Fix crash on shutdown

This commit is contained in:
Victoria Brekenfeld 2022-03-16 19:47:39 +01:00
parent a0e0f5a1d3
commit 373eed4ac5
2 changed files with 9 additions and 1 deletions

View file

@ -60,6 +60,10 @@ fn main() -> Result<()> {
state.common.spaces.refresh();
})?;
let _log = state.destroy();
// drop eventloop before logger
std::mem::drop(event_loop);
Ok(())
}