Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(825)

Unified Diff: ui/gl/gl_gl_api_implementation.cc

Issue 220913004: Fix leak on shutdown from r261153 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_gl_api_implementation.cc
diff --git a/ui/gl/gl_gl_api_implementation.cc b/ui/gl/gl_gl_api_implementation.cc
index 42a937062ed4850eb3f09256d1c64076077da83b..ad5117053c560823e935de13581203abf81471c1 100644
--- a/ui/gl/gl_gl_api_implementation.cc
+++ b/ui/gl/gl_gl_api_implementation.cc
@@ -320,6 +320,10 @@ void ClearGLBindingsGL() {
delete g_trace_gl;
g_trace_gl = NULL;
}
+ if (g_no_context_gl) {
+ delete g_no_context_gl;
+ g_no_context_gl = NULL;
+ }
g_gl = NULL;
g_driver_gl.ClearBindings();
if (g_current_gl_context_tls) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698