DescriptionFix segfault when unplugging captured external display
When unplugging an external display the WindowTreeHost is destroyed, destroying
the window and stopping the capture. However the compositor is destroyed before
the window in the WindowTreeHost destructor.
This change add an extra check that the compositor is valid before dereferencing.
BUG=441747
TEST=on link_freon unplugging external display does not result in crash when
running desktopCapture example against the external display
Committed: https://crrev.com/8a684dcb40f100ed6e02f9b0170ad4b0794a54ae
Cr-Commit-Position: refs/heads/master@{#308168}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address nits #
Total comments: 1
Patch Set 3 : Rename variable to more descriptive name #Messages
Total messages: 11 (2 generated)
|