Chromium Code Reviews| Index: ui/gl/gl_context_osmesa.cc |
| diff --git a/ui/gl/gl_context_osmesa.cc b/ui/gl/gl_context_osmesa.cc |
| index cb71aa57a7e1a059ad73ef2e27cc6cfd6ccbb12a..2063bde7b7b5966bcc74c127ab3edb66d0a32e1e 100644 |
| --- a/ui/gl/gl_context_osmesa.cc |
| +++ b/ui/gl/gl_context_osmesa.cc |
| @@ -76,6 +76,7 @@ bool GLContextOSMesa::MakeCurrent(GLSurface* surface) { |
| if (!surface->OnMakeCurrent(this)) { |
| LOG(ERROR) << "Could not make current."; |
| + ReleaseCurrent(surface); |
| return false; |
| } |