Index: components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc |
diff --git a/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc b/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc |
index eeddf3ab04ad3b3cdc9b2a8b915991fca529281c..52881c0157c0f906308221ed0b7c95a58aede588 100644 |
--- a/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc |
+++ b/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc |
@@ -55,6 +55,8 @@ WebGraphicsContext3DCommandBufferImpl::WebGraphicsContext3DCommandBufferImpl( |
WebGraphicsContext3DCommandBufferImpl:: |
~WebGraphicsContext3DCommandBufferImpl() { |
+ if (gles2_context_) |
+ MojoGLES2DestroyContext(gles2_context_); |
} |
// static |