• robert.bradford's avatar
    Fix segfault when unplugging captured external display · 8a684dcb
    robert.bradford authored
    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
    
    Review URL: https://codereview.chromium.org/801823002
    
    Cr-Commit-Position: refs/heads/master@{#308168}
    8a684dcb
desktop_capture_device_aura.cc 20.1 KB