cryptoservices/certificateandkeymgmt/tpkixcert/Taction_build.cpp
branchRCL_3
changeset 58 a5e05e7296f9
parent 8 35751d3474b7
--- a/cryptoservices/certificateandkeymgmt/tpkixcert/Taction_build.cpp	Wed Jun 09 11:39:05 2010 +0300
+++ b/cryptoservices/certificateandkeymgmt/tpkixcert/Taction_build.cpp	Mon Jun 21 17:40:35 2010 +0300
@@ -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;