diff -r e4e3998ddda2 -r 9f95a5546443 uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp --- a/uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp Tue Aug 31 16:13:36 2010 +0300 +++ b/uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp Wed Sep 01 12:19:53 2010 +0100 @@ -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 ); }