--- a/phoneclientserver/phoneclient/Src/ImageHandler/RPhCltImageHandler.cpp Fri Jun 11 14:07:16 2010 +0300
+++ b/phoneclientserver/phoneclient/Src/ImageHandler/RPhCltImageHandler.cpp Wed Jun 23 18:49:32 2010 +0300
@@ -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);
}
}