diff --git a/accessible/ipc/DocAccessibleParent.h b/accessible/ipc/DocAccessibleParent.h index 095cb9570a2..c983c4af5dc 100644 --- a/accessible/ipc/DocAccessibleParent.h +++ b/accessible/ipc/DocAccessibleParent.h @@ -72,6 +72,7 @@ public: void Destroy(); virtual void ActorDestroy(ActorDestroyReason aWhy) override { + CheckDocTree(); if (!mShutdown) Destroy(); }