mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 716576 - nsCacheService closes its databases too late. r=michal.novotny.
--HG-- extra : rebase_source : 7884a6e0aa247e7a5fff39863a2d29a8fbab7a8e
This commit is contained in:
parent
a0e2f57b74
commit
56e4803848
3
netwerk/cache/nsCacheService.cpp
vendored
3
netwerk/cache/nsCacheService.cpp
vendored
@ -1177,6 +1177,9 @@ nsCacheService::Shutdown()
|
||||
delete mDiskDevice;
|
||||
mDiskDevice = nsnull;
|
||||
|
||||
if (mOfflineDevice)
|
||||
mOfflineDevice->Shutdown();
|
||||
|
||||
NS_IF_RELEASE(mOfflineDevice);
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
|
5
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
5
netwerk/cache/nsDiskCacheDeviceSQL.cpp
vendored
@ -830,11 +830,6 @@ nsOfflineCacheDevice::nsOfflineCacheDevice()
|
||||
{
|
||||
}
|
||||
|
||||
nsOfflineCacheDevice::~nsOfflineCacheDevice()
|
||||
{
|
||||
Shutdown();
|
||||
}
|
||||
|
||||
/* static */
|
||||
bool
|
||||
nsOfflineCacheDevice::GetStrictFileOriginPolicy()
|
||||
|
2
netwerk/cache/nsDiskCacheDeviceSQL.h
vendored
2
netwerk/cache/nsDiskCacheDeviceSQL.h
vendored
@ -102,8 +102,6 @@ public:
|
||||
* nsCacheDevice methods
|
||||
*/
|
||||
|
||||
virtual ~nsOfflineCacheDevice();
|
||||
|
||||
static nsOfflineCacheDevice *GetInstance();
|
||||
|
||||
virtual nsresult Init();
|
||||
|
Loading…
Reference in New Issue
Block a user