uigraphics/AknIcon/srvsrc/AknIconSrvUtils.cpp
branchRCL_3
changeset 107 9f95a5546443
parent 106 e4e3998ddda2
--- 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 );
         }