equal
deleted
inserted
replaced
292 printPreloadStats(); |
292 printPreloadStats(); |
293 #endif |
293 #endif |
294 ListHashSet<CachedResource*>::iterator end = m_preloads.end(); |
294 ListHashSet<CachedResource*>::iterator end = m_preloads.end(); |
295 for (ListHashSet<CachedResource*>::iterator it = m_preloads.begin(); it != end; ++it) { |
295 for (ListHashSet<CachedResource*>::iterator it = m_preloads.begin(); it != end; ++it) { |
296 CachedResource* res = *it; |
296 CachedResource* res = *it; |
297 if (res->preloadResult() == CachedResource::PreloadNotReferenced) |
297 if (res->canDelete() && !res->inCache()) |
|
298 delete res; |
|
299 else if (res->preloadResult() == CachedResource::PreloadNotReferenced) |
298 cache()->remove(res); |
300 cache()->remove(res); |
299 res->decreasePreloadCount(); |
301 res->decreasePreloadCount(); |
300 } |
302 } |
301 m_preloads.clear(); |
303 m_preloads.clear(); |
302 } |
304 } |