fix: DCHECK when calling app.exit() (#33035)

This commit is contained in:
Shelley Vohr 2022-02-23 16:27:54 +01:00 committed by GitHub
parent 5b2d3910c1
commit 268cd31e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ void WindowList::DestroyAllWindows() {
ConvertToWeakPtrVector(GetInstance()->windows_);
for (const auto& window : weak_windows) {
if (window)
if (window && !window->IsClosed())
window->CloseImmediately();
}
}