Changeset 244750 in webkit
- Timestamp:
- Apr 29, 2019, 1:32:47 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
NetworkProcess/cache/NetworkCacheStorage.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r244747 r244750 1 2019-04-29 Alex Christensen <achristensen@webkit.org> 2 3 Storage::deleteOldVersions does not need to retain Storage 4 https://bugs.webkit.org/show_bug.cgi?id=197336 5 <rdar://problem/48679972> 6 7 Reviewed by Darin Adler. 8 9 * NetworkProcess/cache/NetworkCacheStorage.cpp: 10 (WebKit::NetworkCache::Storage::deleteOldVersions): 11 Something is wrong with the lifetime of Storage, but we only need a String, not the whole Storage. 12 1 13 2019-04-29 Brent Fulgham <bfulgham@apple.com> 2 14 -
trunk/Source/WebKit/NetworkProcess/cache/NetworkCacheStorage.cpp
r244678 r244750 1110 1110 void Storage::deleteOldVersions() 1111 1111 { 1112 backgroundIOQueue().dispatch([this, protectedThis = makeRef(*this)] () mutable { 1113 auto cachePath = basePath(); 1114 traverseDirectory(cachePath, [&cachePath](const String& subdirName, DirectoryEntryType type) { 1112 backgroundIOQueue().dispatch([cachePath = basePath()] () mutable { 1113 traverseDirectory(cachePath, [cachePath = WTFMove(cachePath)](const String& subdirName, DirectoryEntryType type) { 1115 1114 if (type != DirectoryEntryType::Directory) 1116 1115 return;
Note:
See TracChangeset
for help on using the changeset viewer.