Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: views/window/window_gtk.cc

Issue 223015: Implement BrowserList::AllBrowsersClosed for Linux. (Closed)
Patch Set: comment Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/window_gtk.cc
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
index 8550fe712905b3cf3ebc3bd2de99d5a657e4b14b..7e833cbd7a058a49aa135e38c22b4c00d0a3eed5 100644
--- a/views/window/window_gtk.cc
+++ b/views/window/window_gtk.cc
@@ -90,11 +90,13 @@ Window* Window::CreateChromeWindow(gfx::NativeWindow parent,
// static
void Window::CloseAllSecondaryWindows() {
- for (GList* window = gtk_window_list_toplevels(); window;
+ GList* windows = gtk_window_list_toplevels();
+ for (GList* window = windows; window;
window = g_list_next(window)) {
Window::CloseSecondaryWidget(
WidgetGtk::GetViewForNative(GTK_WIDGET(window->data)));
}
+ g_list_free(windows);
}
gfx::Rect WindowGtk::GetBounds() const {
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698