From f915776a156eece5fdf910aaff98cc00d2a97554 Mon Sep 17 00:00:00 2001 From: Daosheng Mu Date: Wed, 27 Feb 2019 22:38:58 +0000 Subject: [PATCH] Bug 1530489 - Checking VRGPUParent is available before closing it. r=kip Differential Revision: https://phabricator.services.mozilla.com/D21064 --HG-- extra : moz-landing-system : lando --- gfx/vr/ipc/VRParent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/vr/ipc/VRParent.cpp b/gfx/vr/ipc/VRParent.cpp index bfc12cb9b672..1118154befa8 100644 --- a/gfx/vr/ipc/VRParent.cpp +++ b/gfx/vr/ipc/VRParent.cpp @@ -98,7 +98,7 @@ void VRParent::ActorDestroy(ActorDestroyReason aWhy) { NS_WARNING("Shutting down VR process early due to a crash!"); ProcessChild::QuickExit(); } - if (!mVRGPUParent->IsClosed()) { + if (mVRGPUParent && !mVRGPUParent->IsClosed()) { mVRGPUParent->Close(); } mVRGPUParent = nullptr;