uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp
branchRCL_3
changeset 106 e4e3998ddda2
parent 78 0b86c25b743a
child 107 9f95a5546443
equal deleted inserted replaced
100:9dbe1b043bea 106:e4e3998ddda2
    68 
    68 
    69     // No Handler found, create one and add to list
    69     // No Handler found, create one and add to list
    70     if ( !aHandler )
    70     if ( !aHandler )
    71         {
    71         {
    72         aHandler = AknIconFormatHandlerFactory::NewIconFormatHandlerL( type );
    72         aHandler = AknIconFormatHandlerFactory::NewIconFormatHandlerL( type );
    73         TInt error = aHandlerList.Append( aHandler );
    73         aHandlerList.Append( aHandler );
    74         if (error != KErrNone)
       
    75             {
       
    76             delete aHandler;
       
    77             aHandler = 0;
       
    78             User::Leave(error);
       
    79             }
       
    80         
       
    81         aHandler->SetAnimated( aAnimated );
    74         aHandler->SetAnimated( aAnimated );
    82         }
    75         }
    83 
    76 
    84     return aLoader->IconL( aParams.iBitmapId );
    77     return aLoader->IconL( aParams.iBitmapId );
    85     }
    78     }