summaryrefslogtreecommitdiffstats
path: root/ash/shell.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/shell.cc')
-rw-r--r--ash/shell.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/shell.cc b/ash/shell.cc
index 69008b8..59209d6 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -238,6 +238,9 @@ Shell::~Shell() {
// TODO(xiyuan): Move it back when app list container is no longer needed.
app_list_controller_.reset();
+
+ // Closing the windows frees the workspace controller.
+ shelf_->set_workspace_controller(NULL);
// Destroy all child windows including widgets.
display_controller_->CloseChildWindows();