mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1011487 - HTTP cache v2: WalkCacheRunnable may release it's callback on a non-main thread, r=michal
This commit is contained in:
parent
04bf5d16a1
commit
d08db2f9f9
@ -179,6 +179,14 @@ protected:
|
||||
, mNotifyStorage(true)
|
||||
, mVisitEntries(aVisitEntries)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
}
|
||||
|
||||
virtual ~WalkCacheRunnable()
|
||||
{
|
||||
if (mCallback) {
|
||||
ProxyReleaseMainThread(mCallback);
|
||||
}
|
||||
}
|
||||
|
||||
nsRefPtr<CacheStorageService> mService;
|
||||
|
Loading…
Reference in New Issue
Block a user