diff options
Diffstat (limited to 'athena/screen')
-rw-r--r-- | athena/screen/screen_manager_impl.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/athena/screen/screen_manager_impl.cc b/athena/screen/screen_manager_impl.cc index c8395a7..0b9f67e 100644 --- a/athena/screen/screen_manager_impl.cc +++ b/athena/screen/screen_manager_impl.cc @@ -240,6 +240,13 @@ ScreenManagerImpl::~ScreenManagerImpl() { root_window_->RemovePreTargetHandler(focus_controller); aura::client::SetActivationClient(root_window_, NULL); aura::client::SetFocusClient(root_window_, NULL); + aura::Window::Windows children = root_window_->children(); + // Close All children: + for (aura::Window::Windows::iterator iter = children.begin(); + iter != children.end(); + ++iter) { + delete *iter; + } instance = NULL; } |