| Index: mojo/examples/window_manager/window_manager.cc
|
| diff --git a/mojo/examples/window_manager/window_manager.cc b/mojo/examples/window_manager/window_manager.cc
|
| index d0e6d82a67b4f08a44bd893b4f46725bd79208aa..f2167afde0465947dbf460e12c44e4e978150331 100644
|
| --- a/mojo/examples/window_manager/window_manager.cc
|
| +++ b/mojo/examples/window_manager/window_manager.cc
|
| @@ -299,8 +299,9 @@ class WindowManager
|
| void CloseWindow(Id view_id) {
|
| WindowVector::iterator iter = GetWindowByViewId(view_id);
|
| DCHECK(iter != windows_.end());
|
| + Window* window = *iter;
|
| windows_.erase(iter);
|
| - (*iter)->view()->Destroy();
|
| + window->view()->Destroy();
|
| }
|
|
|
| void ShowKeyboard(Id view_id, const gfx::Rect& bounds) {
|
|
|