Index: mojo/services/view_manager/window_tree_host_impl.cc |
diff --git a/mojo/services/view_manager/window_tree_host_impl.cc b/mojo/services/view_manager/window_tree_host_impl.cc |
index fe4f653622b4ea3ecd82386feff2f78f27d3c601..7a7544f45c3d7f014d2f4c0b544bbe631b36bb36 100644 |
--- a/mojo/services/view_manager/window_tree_host_impl.cc |
+++ b/mojo/services/view_manager/window_tree_host_impl.cc |
@@ -89,6 +89,8 @@ WindowTreeHostImpl::WindowTreeHostImpl( |
WindowTreeHostImpl::~WindowTreeHostImpl() { |
DestroyCompositor(); |
DestroyDispatcher(); |
+ delete context_factory_; |
+ context_factory_ = NULL; |
} |
//////////////////////////////////////////////////////////////////////////////// |
@@ -159,7 +161,6 @@ ui::EventProcessor* WindowTreeHostImpl::GetEventProcessor() { |
// WindowTreeHostImpl, NativeViewportClient implementation: |
void WindowTreeHostImpl::OnCreated(uint64_t native_viewport_id) { |
- LOG(ERROR) << "OnCreated " << native_viewport_id; |
CommandBufferPtr cb; |
gpu_service_->CreateOnscreenGLES2Context( |
native_viewport_id, Size::From(bounds_.size()), Get(&cb)); |