emailservices/emailstore/message_store/client/src/RMessageStoreSession.cpp
changeset 76 38bf5461e270
parent 68 83cc6bae1de8
equal deleted inserted replaced
74:6c59112cfd31 76:38bf5461e270
   448     RPointerArray<HBufC>& names = serializer->NamesArray();
   448     RPointerArray<HBufC>& names = serializer->NamesArray();
   449 	
   449 	
   450 	for ( int i = 0 ; i < count ; i++ )
   450 	for ( int i = 0 ; i < count ; i++ )
   451 		{
   451 		{
   452 		CMsgStoreAccount* account = CMsgStoreAccount::NewL( ownerIds[i], *(names[i]) );
   452 		CMsgStoreAccount* account = CMsgStoreAccount::NewL( ownerIds[i], *(names[i]) );
       
   453 		CleanupStack::PushL( account );
   453 		aAccounts.AppendL( account );
   454 		aAccounts.AppendL( account );
       
   455 		CleanupStack::Pop( account );
   454 		}
   456 		}
   455 	CleanupStack::PopAndDestroy( serializer );
   457 	CleanupStack::PopAndDestroy( serializer );
   456 	CleanupStack::PopAndDestroy( &resultBuf );
   458 	CleanupStack::PopAndDestroy( &resultBuf );
   457 	
   459 	
   458 	__LOG_EXIT
   460 	__LOG_EXIT
  1716         TPtrC16 nameDes16( namePtr16, length/2 );  
  1718         TPtrC16 nameDes16( namePtr16, length/2 );  
  1717         pointer += length;
  1719         pointer += length;
  1718     
  1720     
  1719         //create the address object and add it to the output array
  1721         //create the address object and add it to the output array
  1720         CMsgStoreAddress *address = CMsgStoreAddress::NewL( addrDes16, nameDes16 );
  1722         CMsgStoreAddress *address = CMsgStoreAddress::NewL( addrDes16, nameDes16 );
  1721         aAddressArray.AppendL( address );            
  1723         CleanupStack::PushL( address );
       
  1724         aAddressArray.AppendL( address );
       
  1725         CleanupStack::Pop( address );
  1722         } // end while          
  1726         } // end while          
  1723     
  1727     
  1724     CleanupStack::PopAndDestroy( &serializedBuf );
  1728     CleanupStack::PopAndDestroy( &serializedBuf );
  1725     
  1729     
  1726     __LOG_EXIT
  1730     __LOG_EXIT