Commit ccfb098b authored by sky@chromium.org's avatar sky@chromium.org

Fixes leak/crash in CompositorCC.

BUG=104360
TEST=covered by tests


Review URL: http://codereview.chromium.org/8772047

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112843 0039d316-1c4b-4281-b951-d872f2087c98
parent c1c7ae09
...@@ -145,6 +145,10 @@ CompositorCC::CompositorCC(CompositorDelegate* delegate, ...@@ -145,6 +145,10 @@ CompositorCC::CompositorCC(CompositorDelegate* delegate,
} }
CompositorCC::~CompositorCC() { CompositorCC::~CompositorCC() {
// There's a cycle between |root_web_layer_| and |host_|, which results in
// leaking and/or crashing. Explicitly set the root layer to NULL so the cycle
// is broken.
host_.setRootLayer(NULL);
} }
void CompositorCC::Initialize(bool use_thread) { void CompositorCC::Initialize(bool use_thread) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment