phoneclientserver/phoneclient/Src/ImageHandler/RPhCltImageHandler.cpp
branchRCL_3
changeset 19 7d48bed6ce0c
parent 0 ff3b6d0fd310
child 20 987c9837762f
--- a/phoneclientserver/phoneclient/Src/ImageHandler/RPhCltImageHandler.cpp	Thu Aug 19 10:28:14 2010 +0300
+++ b/phoneclientserver/phoneclient/Src/ImageHandler/RPhCltImageHandler.cpp	Tue Aug 31 15:45:17 2010 +0300
@@ -18,9 +18,9 @@
 
 // INCLUDES
 
-#include    "RPhCltImageHandler.h"
-#include    "PhCltClientServer.h"
-#include    <RPhCltServer.h>
+#include    "rphcltimagehandler.h" 
+#include    "phcltclientserver.h" 
+#include    <rphcltserver.h> 
 #include    <e32std.h>
 #include    <e32base.h>
 #include    <fbs.h>
@@ -184,7 +184,9 @@
             ( TPhCltExtOperatorLogoType )
             aImages.iImages[ EPhCltExtLogoTypeIndex ],
             bitMap );
-        iOperatorLogos.Append( logo );
+        CleanupStack::PushL(logo);
+        iOperatorLogos.AppendL( logo );
+        CleanupStack::Pop(logo);
         }
     }
 
@@ -198,12 +200,14 @@
     {
     // Remove all first.
     iVTBitMaps.ResetAndDestroy();
-
+    iVTBitMaps.ReserveL(aImages.iImageCount);
     for ( TInt i = 0 ; i < aImages.iImageCount; i ++ )
         {
         CFbsBitmap* bitMap = 
             CreateBitMapL( aImages.iImages[ i ] );
-        iVTBitMaps.Append( bitMap );
+        CleanupStack::PushL( bitMap );
+        iVTBitMaps.AppendL( bitMap );
+        CleanupStack::Pop(bitMap);
         }
     }