зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1120331 - "crash in mozilla::ipc::MessageChannel::Send(IPC::Message*)". r=sotaro
This commit is contained in:
Родитель
66e79878c1
Коммит
ccd17ee47f
|
@ -712,6 +712,10 @@ ClientLayerManager::ReportClientLost(TextureClient& aClient) {
|
|||
void
|
||||
ClientLayerManager::ClearCachedResources(Layer* aSubtree)
|
||||
{
|
||||
if (mDestroyed) {
|
||||
// ClearCachedResource was already called by ClientLayerManager::Destroy
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(!HasShadowManager() || !aSubtree);
|
||||
mForwarder->ClearCachedResources();
|
||||
if (aSubtree) {
|
||||
|
|
|
@ -45,8 +45,10 @@ public:
|
|||
|
||||
virtual void Destroy() MOZ_OVERRIDE
|
||||
{
|
||||
LayerManager::Destroy();
|
||||
// It's important to call ClearCachedResource before Destroy because the
|
||||
// former will early-return if the later has already run.
|
||||
ClearCachedResources();
|
||||
LayerManager::Destroy();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
Загрузка…
Ссылка в новой задаче