webengine/osswebengine/WebCore/loader/DocLoader.cpp
changeset 1 7c90e6132015
parent 0 dd21522fd290
child 5 10e98eab6f85
equal deleted inserted replaced
0:dd21522fd290 1:7c90e6132015
   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 }