diff -r be41ab7b952f -r 43658d24f35d voipplugins/voipadapters/cpvoipadapter/src/CWPVoIPAdapter.cpp --- a/voipplugins/voipadapters/cpvoipadapter/src/CWPVoIPAdapter.cpp Tue May 11 16:04:22 2010 +0300 +++ b/voipplugins/voipadapters/cpvoipadapter/src/CWPVoIPAdapter.cpp Tue May 25 12:31:20 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-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" @@ -35,6 +35,7 @@ #include #include #include +#include #include "CWPVoIPAdapter.h" #include "CWPVoIPItem.h" @@ -411,12 +412,24 @@ void CWPVoIPAdapter::GetSavingInfoL( TInt aIndex, RPointerArray& aSavingInfo ) { + CleanupResetAndDestroyPushL( aSavingInfo ); + // APPID into place [0]. - aSavingInfo.AppendL( KVoIPAppID8().AllocL() ); + HBufC8* temp = KVoIPAppID8().AllocLC(); + aSavingInfo.AppendL( temp ); + CleanupStack::Pop(); + // APPREF into place [1]. - aSavingInfo.AppendL( iDatas[aIndex]->AppRef()->AllocL() ); + temp = iDatas[aIndex]->AppRef()->AllocLC(); + aSavingInfo.AppendL( temp ); + CleanupStack::Pop(); + // Profile id into place [2]. - aSavingInfo.AppendL( iDatas[aIndex]->SaveData().AllocL() ); + temp = iDatas[aIndex]->SaveData().AllocLC(); + aSavingInfo.AppendL( temp ); + CleanupStack::Pop(); + + CleanupStack::Pop( &aSavingInfo ); } // ---------------------------------------------------------------------------