Bug 716576 - nsCacheService closes its databases too late. r=michal.novotny.

--HG--
extra : rebase_source : 7884a6e0aa247e7a5fff39863a2d29a8fbab7a8e
This commit is contained in:
Rafael Ávila de Espíndola 2012-01-11 17:41:21 -05:00
parent a0e2f57b74
commit 56e4803848
3 changed files with 3 additions and 7 deletions

View File

@ -1177,6 +1177,9 @@ nsCacheService::Shutdown()
delete mDiskDevice;
mDiskDevice = nsnull;
if (mOfflineDevice)
mOfflineDevice->Shutdown();
NS_IF_RELEASE(mOfflineDevice);
#ifdef PR_LOGGING

View File

@ -830,11 +830,6 @@ nsOfflineCacheDevice::nsOfflineCacheDevice()
{
}
nsOfflineCacheDevice::~nsOfflineCacheDevice()
{
Shutdown();
}
/* static */
bool
nsOfflineCacheDevice::GetStrictFileOriginPolicy()

View File

@ -102,8 +102,6 @@ public:
* nsCacheDevice methods
*/
virtual ~nsOfflineCacheDevice();
static nsOfflineCacheDevice *GetInstance();
virtual nsresult Init();