uigraphics/AknIcon/SvgtFbsRasterizer/src/SvgtFbsRasterizer.cpp
changeset 21 4ab28fdd25ad
parent 2 abcbdabaa4c5
child 45 6ef40bf8fd34
--- a/uigraphics/AknIcon/SvgtFbsRasterizer/src/SvgtFbsRasterizer.cpp	Tue Jan 26 12:55:15 2010 +0200
+++ b/uigraphics/AknIcon/SvgtFbsRasterizer/src/SvgtFbsRasterizer.cpp	Tue Feb 02 00:52:22 2010 +0200
@@ -169,6 +169,11 @@
                 iRecentBmps.AddFirst(*regBmp);
                 iTotalRecentBmpSize += regBmp->DataSize();
                 }
+            else
+                {
+                delete regBmp; // deleting the registered bitmap in a case when raster bitmap size is bigger than cache
+                }	
+                
             // Delete the least recently used bitmaps if the maximum size of the cache is exceeded
             while (iTotalRecentBmpSize > iCacheLimit)
                 {