diff -r 4e4b6adb1024 -r 224522e33db9 mmsengine/mmssettings/src/cmmsaccounts.cpp --- a/mmsengine/mmssettings/src/cmmsaccounts.cpp Tue Jun 29 23:42:47 2010 +0530 +++ b/mmsengine/mmssettings/src/cmmsaccounts.cpp Tue Jul 06 22:50:16 2010 +0530 @@ -1,4 +1,4 @@ -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -249,6 +249,7 @@ */ EXPORT_C void CMmsAccounts::GetMMSAccountsL(RArray& aAccountIds) const { + CleanupClosePushL( aAccountIds ); aAccountIds.Reset(); RArray accountIds; CleanupClosePushL(accountIds); @@ -268,7 +269,8 @@ aAccountIds.AppendL(accountId); } - CleanupStack::PopAndDestroy(&accountIds); + CleanupStack::PopAndDestroy(&accountIds); + CleanupStack::Pop(&aAccountIds); // aAccountIds } /**