diff -r 970c0057d9bc -r de46a57f75fb cryptoservices/certificateandkeymgmt/tpkixcert/Taction_build.cpp --- a/cryptoservices/certificateandkeymgmt/tpkixcert/Taction_build.cpp Tue May 25 00:47:47 2010 +0530 +++ b/cryptoservices/certificateandkeymgmt/tpkixcert/Taction_build.cpp Thu Jun 24 15:39:07 2010 +0530 @@ -1,5 +1,5 @@ /* -* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of the License "Eclipse Public License v1.0" @@ -161,7 +161,7 @@ { } - while(AddAddCalls(*aBody, pos)) + while(AddAddCallsL(*aBody, pos)) { } @@ -354,13 +354,14 @@ return EFalse; } -TBool CTestActionBuild::AddAddCalls(const TDesC& aBuf, TInt& aPos) +TBool CTestActionBuild::AddAddCallsL(const TDesC& aBuf, TInt& aPos) { TPtrC addCallsBuf = Input::ParseElement(aBuf, KAddCallStart, KAddCallEnd, aPos); if (addCallsBuf != KNullDesC) { - CAddCall* addCall = CAddCall::NewL(addCallsBuf); - iAddCalls.Append(addCall); + CAddCall* addCall = CAddCall::NewLC(addCallsBuf); + iAddCalls.AppendL(addCall); + CleanupStack::Pop(addCall); return ETrue; } return EFalse;