src/hbservers/hbthemeserver/hbicondatacache_p.cpp
changeset 28 b7da29130b0e
parent 23 e6ad4ef83b23
child 30 80e4d18b72f5
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
   227     if (!cache->contains(key)) {
   227     if (!cache->contains(key)) {
   228         return 0;
   228         return 0;
   229     }
   229     }
   230     // Get the cache item associated with the key
   230     // Get the cache item associated with the key
   231     item = (*cache)[(key)];
   231     item = (*cache)[(key)];
       
   232     
       
   233     if ((item->vectorIconData.type == INVALID_FORMAT) &&
       
   234             (item->rasterIconData.type == INVALID_FORMAT)) {
       
   235                 cache->remove(key);
       
   236                 delete item;
       
   237                 return 0;
       
   238     }
   232 
   239 
   233 //Debug Code for Test Purpose
   240 //Debug Code for Test Purpose
   234 #ifdef HB_ICON_CACHE_DEBUG
   241 #ifdef HB_ICON_CACHE_DEBUG
   235     addedItemMem = item->rasterIconDataCost;
   242     addedItemMem = item->rasterIconDataCost;
   236     cacheHit++;
   243     cacheHit++;