Bug 1011487 - HTTP cache v2: WalkCacheRunnable may release it's callback on a non-main thread, r=michal

This commit is contained in:
Honza Bambas 2014-05-17 15:38:50 +02:00
parent 04bf5d16a1
commit d08db2f9f9

View File

@ -179,6 +179,14 @@ protected:
, mNotifyStorage(true)
, mVisitEntries(aVisitEntries)
{
MOZ_ASSERT(NS_IsMainThread());
}
virtual ~WalkCacheRunnable()
{
if (mCallback) {
ProxyReleaseMainThread(mCallback);
}
}
nsRefPtr<CacheStorageService> mService;