From fdf09b88f255a90e81cf30ec97c49b6904af3c6d Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Thu, 12 Oct 2017 13:10:27 +1300 Subject: [PATCH] Bug 1261175. r=tnikkel, a=abillings --- view/nsViewManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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