diff -r 9ad3127c7f4d -r 0b86c25b743a uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp --- a/uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp Wed Jun 09 10:47:45 2010 +0300 +++ b/uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp Mon Jun 21 16:49:08 2010 +0300 @@ -70,7 +70,14 @@ if ( !aHandler ) { aHandler = AknIconFormatHandlerFactory::NewIconFormatHandlerL( type ); - aHandlerList.Append( aHandler ); + TInt error = aHandlerList.Append( aHandler ); + if (error != KErrNone) + { + delete aHandler; + aHandler = 0; + User::Leave(error); + } + aHandler->SetAnimated( aAnimated ); }