diff --git a/view/nsViewManager.cpp b/view/nsViewManager.cpp index f3540f3478da..230512c0dcc0 100644 --- a/view/nsViewManager.cpp +++ b/view/nsViewManager.cpp @@ -100,7 +100,7 @@ nsViewManager::~nsViewManager() gViewManagers = nullptr; } - mPresShell = nullptr; + MOZ_RELEASE_ASSERT(!mPresShell, "Releasing nsViewManager without having called Destroy on the PresShell!"); } // We don't hold a reference to the presentation context because it