From 951d71ea06a7b54de5e825ea269baedde387b6e2 Mon Sep 17 00:00:00 2001 From: "dp%netscape.com" Date: Wed, 16 Feb 2000 07:42:00 +0000 Subject: [PATCH] Protecting shutdown with mInitialized. regxpcom will cause shutdown to happen without mInitialized and without this incorrect shutdown to happen. r=vidur r=rjc git-svn-id: svn://10.0.0.236/trunk@61110 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/build/nsLayoutModule.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/layout/build/nsLayoutModule.cpp b/mozilla/layout/build/nsLayoutModule.cpp index d20b3028be2..4e6f1184924 100644 --- a/mozilla/layout/build/nsLayoutModule.cpp +++ b/mozilla/layout/build/nsLayoutModule.cpp @@ -246,6 +246,10 @@ nsLayoutModule::Initialize() void nsLayoutModule::Shutdown() { + if (!mInitialized) { + return; + } + // Release all of our atoms nsColorNames::ReleaseTable(); nsCSSProps::ReleaseTable();