Bug 353227, hopefully fix crash and release DOM storage manager, r+sr=jst

git-svn-id: svn://10.0.0.236/trunk@212106 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
enndeakin%sympatico.ca 2006-09-21 13:55:27 +00:00
parent 0321d63c03
commit 80e8d17ea4
3 changed files with 10 additions and 0 deletions

View File

@ -146,6 +146,14 @@ nsDOMStorageManager::Initialize()
return NS_OK;
}
//static
void
nsDOMStorageManager::Shutdown()
{
NS_IF_RELEASE(gStorageManager);
gStorageManager = nsnull;
}
PR_STATIC_CALLBACK(PLDHashOperator)
ClearStorage(nsDOMStorageEntry* aEntry, void* userArg)
{

View File

@ -95,6 +95,7 @@ public:
nsresult ClearAllStorages();
static nsresult Initialize();
static void Shutdown();
static nsDOMStorageManager* gStorageManager;

View File

@ -191,6 +191,7 @@ nsLayoutStatics::Initialize()
void
nsLayoutStatics::Shutdown()
{
nsDOMStorageManager::Shutdown();
txXSLTProcessor::shutdown();
nsDOMAttribute::Shutdown();
nsDOMEventRTTearoff::Shutdown();