mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
b=175888 Calling nsGlobalHistory::CloseDB() must be safe
r=timeless sr=alecf
This commit is contained in:
parent
0a6e30e15a
commit
121aaaffaa
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user