diff -r 0d28c1c5b6dd -r 2828b4d142c0 phonebookui/Phonebook2/xSPExtensionManager/src/CxSPContactManager.cpp --- a/phonebookui/Phonebook2/xSPExtensionManager/src/CxSPContactManager.cpp Tue Apr 27 16:23:35 2010 +0300 +++ b/phonebookui/Phonebook2/xSPExtensionManager/src/CxSPContactManager.cpp Tue May 11 16:00:21 2010 +0300 @@ -138,6 +138,7 @@ void CxSPContactManager::GetMappedPbkContactsL( TUint32 aId, TInt32 axSPContactId, RPointerArray& aPbkContactLinks ) const { + CleanupClosePushL( aPbkContactLinks ); TInt count = iContactMap.Count(); for( TInt i = 0; i < count; i++ ) { @@ -147,12 +148,14 @@ User::LeaveIfError( aPbkContactLinks.Append( map->iPbkContactLink ) ); } } + CleanupStack::Pop(); } void CxSPContactManager::GetMappedxSPContactsL( TUint32 aId, const MVPbkContactLink& aPbkContactLink, RArray& axSPContactIds ) const { + CleanupClosePushL( axSPContactIds ); const TInt count = iContactMap.Count(); for( TInt i = 0; i < count; i++ ) { @@ -165,6 +168,7 @@ } } } + CleanupStack::Pop(); } void CxSPContactManager::ViewActivatedL( const TVwsViewId& aPrevViewId,