From fae1402a6efc8b4ad4aa1f3478e884f9372546ca Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 22 Oct 2021 18:36:25 -0400 Subject: [PATCH] Mac: cefclient: Fix crash when quitting from the top menu (fixes issue #3201) --- tests/cefclient/browser/root_window_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cefclient/browser/root_window_manager.cc b/tests/cefclient/browser/root_window_manager.cc index 933539732..f3840674e 100644 --- a/tests/cefclient/browser/root_window_manager.cc +++ b/tests/cefclient/browser/root_window_manager.cc @@ -251,7 +251,7 @@ void RootWindowManager::CloseAllWindows(bool force) { // in OnRootWindowDestroyed while iterating. RootWindowSet root_windows = root_windows_; - for (auto root_window : root_windows_) { + for (auto root_window : root_windows) { root_window->Close(force); } }