From 2e39aafeed5989e86dd616dba4b8415b860e44c3 Mon Sep 17 00:00:00 2001 From: Sotaro Ikeda Date: Wed, 6 Nov 2013 08:44:57 -0500 Subject: [PATCH] Bug 911387 - Add calling CompositableBackendSpecificData::ClearData() in Detach(). r=nical --- gfx/layers/composite/CompositableHost.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/layers/composite/CompositableHost.h b/gfx/layers/composite/CompositableHost.h index 02aa294685e4..2c22d5ab3b00 100644 --- a/gfx/layers/composite/CompositableHost.h +++ b/gfx/layers/composite/CompositableHost.h @@ -269,6 +269,9 @@ public: SetCompositor(nullptr); mAttached = false; mKeepAttached = false; + if (mBackendData) { + mBackendData->ClearData(); + } } } bool IsAttached() { return mAttached; }