idlefw/plugins/sapidataplugin/src/sapidataplugin.cpp
branchRCL_3
changeset 130 67f2ed48ad91
parent 118 8baec10861af
--- a/idlefw/plugins/sapidataplugin/src/sapidataplugin.cpp	Wed Sep 15 12:32:36 2010 +0300
+++ b/idlefw/plugins/sapidataplugin/src/sapidataplugin.cpp	Wed Oct 13 14:53:46 2010 +0300
@@ -241,9 +241,7 @@
           if ( icon != NULL ) // Syntax correct but icon not found
               {
               aObserver->PublishPtr( *this, aContentId, icon , aContentId );
-              CleanupStack::PushL( icon );
-              iIconArray.AppendL( icon );
-              CleanupStack::Pop( icon );
+              iIconArray.Append(icon);
               } 
           else
               {
@@ -287,7 +285,6 @@
                 {
                 // Take the ownership
                 CGulIcon* icon = CGulIcon::NewL(bitmap);
-                CleanupStack::PushL( icon );
                 if( aMaskHandle != KErrBadHandle )
                     {
                     CFbsBitmap* mask = new (ELeave) CFbsBitmap();
@@ -297,8 +294,7 @@
                         }
                     }
                 aObserver->PublishPtr( *this, aContentId, icon , aContentId );
-                iIconArray.AppendL( icon );
-                CleanupStack::Pop( icon );
+                iIconArray.Append(icon);
                 }
             else
                 {