Protecting shutdown with mInitialized. regxpcom will cause shutdown to

happen without mInitialized and without this incorrect shutdown to
happen. r=vidur r=rjc
This commit is contained in:
dp@netscape.com
2000-02-16 07:42:00 +00:00
parent e573d479f4
commit 2f751b4b14

View File

@@ -246,6 +246,10 @@ nsLayoutModule::Initialize()
void
nsLayoutModule::Shutdown()
{
if (!mInitialized) {
return;
}
// Release all of our atoms
nsColorNames::ReleaseTable();
nsCSSProps::ReleaseTable();