mmsengine/mmssettings/src/cmmsaccounts.cpp
branchRCL_3
changeset 29 7e4e4bcc75b6
parent 0 72b543305e3a
child 57 ebe688cedc25
--- a/mmsengine/mmssettings/src/cmmsaccounts.cpp	Tue May 11 16:10:04 2010 +0300
+++ b/mmsengine/mmssettings/src/cmmsaccounts.cpp	Tue May 25 12:38:02 2010 +0300
@@ -249,6 +249,7 @@
 */                   
 EXPORT_C void CMmsAccounts::GetMMSAccountsL(RArray<TMmsAccountId>& aAccountIds) const
 	{
+    CleanupClosePushL( aAccountIds );
 	aAccountIds.Reset();
 	RArray<TUint32> accountIds;	
 	CleanupClosePushL(accountIds);	
@@ -268,7 +269,8 @@
 		aAccountIds.AppendL(accountId);		
 		}
 		
-	CleanupStack::PopAndDestroy(&accountIds);				
+	CleanupStack::PopAndDestroy(&accountIds);
+	CleanupStack::Pop(&aAccountIds);  // aAccountIds
 	}
 
 /**