idlefw/plugins/wrtdataplugin/src/wrtdataplugin.cpp
branchRCL_3
changeset 130 67f2ed48ad91
parent 118 8baec10861af
--- a/idlefw/plugins/wrtdataplugin/src/wrtdataplugin.cpp	Wed Sep 15 12:32:36 2010 +0300
+++ b/idlefw/plugins/wrtdataplugin/src/wrtdataplugin.cpp	Wed Oct 13 14:53:46 2010 +0300
@@ -582,9 +582,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
               {
@@ -628,7 +626,6 @@
                 {
                 // Take the ownership
                 CGulIcon* icon = CGulIcon::NewL(bitmap);
-                CleanupStack::PushL( icon );
                 if( aMaskHandle != KErrBadHandle )
                     {
                     CFbsBitmap* mask = new (ELeave) CFbsBitmap();
@@ -638,8 +635,7 @@
                         }
                     }
                 aObserver->PublishPtr( *this, aContentId, icon , aContentId );
-                iIconArray.AppendL( icon );
-                CleanupStack::Pop( icon );
+                iIconArray.Append(icon);
                 }
             else
                 {