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

Unified Diff: ui/aura_shell/workspace/workspace_manager.cc

Issue 8395033: Fix crash when deleting workspaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/workspace/workspace_manager.cc
diff --git a/ui/aura_shell/workspace/workspace_manager.cc b/ui/aura_shell/workspace/workspace_manager.cc
index f8f5a3e930cc04b206d85cb35c2880b1986a6819..ed76cf1f081db42aaafccb37f69cf8560f92257e 100644
--- a/ui/aura_shell/workspace/workspace_manager.cc
+++ b/ui/aura_shell/workspace/workspace_manager.cc
@@ -25,7 +25,8 @@ WorkspaceManager::WorkspaceManager()
}
WorkspaceManager::~WorkspaceManager() {
- STLDeleteElements(&workspaces_);
+ std::vector<Workspace*> copy_to_delete(workspaces_);
+ STLDeleteElements(&copy_to_delete);
}
Workspace* WorkspaceManager::CreateWorkspace() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698