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

Unified Diff: ui/aura/desktop.cc

Issue 8800030: Fix assert with webkit compositor. The assert was hitting because we (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Spacing and comment 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/desktop.cc
diff --git a/ui/aura/desktop.cc b/ui/aura/desktop.cc
index 38818e69f46b9ae7776eb9f29d2b8a256da85d82..7bf25d3abb037af965a710fe6d7e5fd8bb6fac0c 100644
--- a/ui/aura/desktop.cc
+++ b/ui/aura/desktop.cc
@@ -429,6 +429,9 @@ Desktop::Desktop()
Desktop::~Desktop() {
in_destructor_ = true;
+ // Make sure to destroy the compositor before terminating so that state is
+ // cleared and we don't hit asserts.
+ compositor_ = NULL;
#ifdef USE_WEBKIT_COMPOSITOR
if (!ui::Compositor::compositor_factory())
ui::CompositorCC::Terminate();
« 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