uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp
branchRCL_3
changeset 78 0b86c25b743a
parent 54 08459e712984
child 106 e4e3998ddda2
--- 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 );
         }