contentstorage/extsrc/casathandler.cpp
changeset 112 dbfb5e38438b
parent 98 d2f833ab7940
--- a/contentstorage/extsrc/casathandler.cpp	Fri Aug 06 13:40:46 2010 +0300
+++ b/contentstorage/extsrc/casathandler.cpp	Wed Aug 18 10:39:24 2010 +0300
@@ -49,7 +49,7 @@
     }
 
 // -----------------------------------------------------------------------------
-// Destructor
+// LoadIconL
 // -----------------------------------------------------------------------------
 EXPORT_C CAknIcon* CCaSatHandler::LoadIconL()
     {
@@ -63,9 +63,9 @@
         iSatIcon.GetIconInfoL( TUint8( iconId ), iIconEf );
         CleanupClosePushL( iIconEf );
         CFbsBitmap* bitmap = GetBitmapL( iIconEf );
-        if( !bitmap )
+        if( bitmap )
             {
-            CFbsBitmap* mask( NULL );
+            CFbsBitmap* mask(  new (ELeave) CFbsBitmap );
             CleanupStack::PushL( mask );
 
             icon->SetBitmap( bitmap );