unregister components while exiting

This commit is contained in:
csmoe 2018-12-15 21:55:58 +08:00
parent c9229f3f99
commit 5600a1dca1
5 changed files with 44 additions and 0 deletions

View file

@ -926,6 +926,7 @@ impl LayoutThread {
self.root_flow.borrow_mut().take();
// Drop the rayon threadpool if present.
let _ = self.parallel_traversal.take();
self.background_hang_monitor.unregister();
}
fn handle_add_stylesheet(&self, stylesheet: &Stylesheet, guard: &SharedRwLockReadGuard) {