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

Unified Diff: ui/gfx/compositor/compositor_cc.cc

Issue 8772072: Fix CompositorCC initialization/shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | ui/gfx/compositor/test/test_suite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor_cc.cc
diff --git a/ui/gfx/compositor/compositor_cc.cc b/ui/gfx/compositor/compositor_cc.cc
index 619ed5b18bad1e868aba58f58c00956a4cfddc86..2ebed681438bc173c99418de34f155c5db2f01ad 100644
--- a/ui/gfx/compositor/compositor_cc.cc
+++ b/ui/gfx/compositor/compositor_cc.cc
@@ -166,9 +166,10 @@ void CompositorCC::Terminate() {
#ifdef WEBCOMPOSITOR_HAS_INITIALIZE
WebKit::WebCompositor::shutdown();
#endif
- DCHECK(g_compositor_thread);
- delete g_compositor_thread;
- g_compositor_thread = NULL;
+ if (g_compositor_thread) {
+ delete g_compositor_thread;
+ g_compositor_thread = NULL;
+ }
}
// static
« no previous file with comments | « no previous file | ui/gfx/compositor/test/test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698