DescriptionFixes possible crash in ~Display
If the root of a WindowTree associated with the window manager was
removed and the associated WindowTree destroyed, then Display
would still have a reference to the WindowManagerState resulting in a
possible crash.
WindowServer::DestroyTree() had code to handle this case, but it
looked up the Display using the roots of the WindowTree, so that once
the roots were removed the Display couldn't be found. Fix is to move
logic to ~WindowManagerState.
BUG=none
TEST=covered by test
R=sadrul@chromium.org
Committed: https://crrev.com/303a16654cc0cc8ef9eeacaccd122dc59cc16f83
Cr-Commit-Position: refs/heads/master@{#421196}
Patch Set 1 #
Messages
Total messages: 11 (6 generated)
|