зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1230939 - check the return of sGlobalEntryTables->Get(aContextKey, &diskEntries). r=mayhemer
This commit is contained in:
Родитель
de618f4222
Коммит
b0926d6bae
|
@ -1746,8 +1746,7 @@ CacheStorageService::DoomStorageEntries(nsCSubstring const& aContextKey,
|
|||
sGlobalEntryTables->RemoveAndForget(memoryStorageID, memoryEntries);
|
||||
|
||||
CacheEntryTable* diskEntries;
|
||||
sGlobalEntryTables->Get(aContextKey, &diskEntries);
|
||||
if (memoryEntries && diskEntries) {
|
||||
if (memoryEntries && sGlobalEntryTables->Get(aContextKey, &diskEntries)) {
|
||||
for (auto iter = memoryEntries->Iter(); !iter.Done(); iter.Next()) {
|
||||
auto entry = iter.Data();
|
||||
RemoveExactEntry(diskEntries, iter.Key(), entry, false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче