From d340b3064c14e2c16f9c6fa027e3a5c9044b5671 Mon Sep 17 00:00:00 2001 From: sotaro Date: Thu, 9 May 2019 07:37:03 +0000 Subject: [PATCH] Bug 1536668 - Add more check to RecvGetTextureFactoryIdentifier() r=nical Add a check similar to LayerTransactionParent::RecvSetAsyncZoom() Differential Revision: https://phabricator.services.mozilla.com/D30308 --HG-- extra : moz-landing-system : lando --- gfx/layers/ipc/LayerTransactionParent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/layers/ipc/LayerTransactionParent.cpp b/gfx/layers/ipc/LayerTransactionParent.cpp index bc09a6a47c24..d86788843465 100644 --- a/gfx/layers/ipc/LayerTransactionParent.cpp +++ b/gfx/layers/ipc/LayerTransactionParent.cpp @@ -1031,7 +1031,7 @@ mozilla::ipc::IPCResult LayerTransactionParent::RecvRecordPaintTimes( mozilla::ipc::IPCResult LayerTransactionParent::RecvGetTextureFactoryIdentifier( TextureFactoryIdentifier* aIdentifier) { - if (!mLayerManager) { + if (mDestroyed || !mLayerManager || mLayerManager->IsDestroyed()) { // Default constructor sets mParentBackend to LAYERS_NONE. return IPC_OK(); }