b=175888 Calling nsGlobalHistory::CloseDB() must be safe

r=timeless sr=alecf
This commit is contained in:
kaie%netscape.com 2002-11-14 01:13:37 +00:00
parent 0a6e30e15a
commit 121aaaffaa

View File

@ -2784,6 +2784,9 @@ nsresult nsGlobalHistory::ExpireEntries(PRBool notify)
nsresult
nsGlobalHistory::CloseDB()
{
if (!mStore)
return NS_OK;
mdb_err err;
ExpireEntries(PR_FALSE /* don't notify */);
@ -2795,8 +2798,7 @@ nsGlobalHistory::CloseDB()
if (mTable)
mTable->Release();
if (mStore)
mStore->Release();
mStore->Release();
if (mEnv)
mEnv->Release();