Chromium Code Reviews| Index: ui/aura/root_window.cc |
| diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc |
| index bf646fcf0b0d279513965db3f1347098ab8e5d13..9b9286d4ec06f64ae31adaf1c9b790fea06c1d95 100644 |
| --- a/ui/aura/root_window.cc |
| +++ b/ui/aura/root_window.cc |
| @@ -434,6 +434,7 @@ RootWindow::~RootWindow() { |
| // Make sure to destroy the compositor before terminating so that state is |
| // cleared and we don't hit asserts. |
| compositor_ = NULL; |
| + layer()->GetAnimator()->RemoveObserver(this); |
|
Ben Goodger (Google)
2011/12/08 17:14:17
You should add a comment here that an observer may
Yusuke Sato
2011/12/09 01:50:59
Done.
|
| #ifdef USE_WEBKIT_COMPOSITOR |
| if (!ui::Compositor::compositor_factory()) |
| ui::CompositorCC::Terminate(); |