Index: ui/aura/window_tree_host.cc |
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc |
index 4deb5fcd2fd3b990ce6a26eaf65a0e78decb02cb..d4770130d8579de5054682e22435a9cff3c6458d 100644 |
--- a/ui/aura/window_tree_host.cc |
+++ b/ui/aura/window_tree_host.cc |
@@ -167,7 +167,10 @@ WindowTreeHost::WindowTreeHost() |
: delegate_(NULL) { |
} |
-void WindowTreeHost::DestroyCompositor() { compositor_.reset(); } |
+void WindowTreeHost::DestroyCompositor() { |
+ DCHECK(GetAcceleratedWidget()); |
+ compositor_.reset(); |
+} |
void WindowTreeHost::CreateCompositor( |
gfx::AcceleratedWidget accelerated_widget) { |