emailservices/emailstore/message_store/common/src/AccountsSerializer.cpp
changeset 76 38bf5461e270
parent 51 d845db10c0d4
--- a/emailservices/emailstore/message_store/common/src/AccountsSerializer.cpp	Thu Sep 30 11:43:07 2010 +0300
+++ b/emailservices/emailstore/message_store/common/src/AccountsSerializer.cpp	Thu Oct 14 17:33:43 2010 +0300
@@ -46,7 +46,9 @@
 void CAccountsSerializer::AddAccountL( TInt32 aOwnerId, const TDesC& aName )
 	{
 	HBufC* nameCopy = aName.AllocL();
+	CleanupStack::PushL( nameCopy );
 	iNameBufArray.AppendL( nameCopy );
+	CleanupStack::Pop( nameCopy );
 	iOwnerIdArray.AppendL( aOwnerId );
 	iCount++;
 	}