installationservices/swidevicetools/source/swicertstoretool/CSWICertStoreTool.cpp
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
--- a/installationservices/swidevicetools/source/swicertstoretool/CSWICertStoreTool.cpp	Tue Aug 31 15:21:33 2010 +0300
+++ b/installationservices/swidevicetools/source/swicertstoretool/CSWICertStoreTool.cpp	Wed Sep 01 12:22:02 2010 +0100
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2006-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"
@@ -400,6 +400,7 @@
 
 void CSWICertStoreTool::ParseApplicationsL(const CTestConfigSection& aSection, RArray<TUid>& aApplications)
 	{
+	CleanupClosePushL(aApplications);
 	for (TInt index = 0 ; ; ++index)
 		{
 		const CTestConfigItem* item = aSection.Item(KItemApplication, index);
@@ -424,6 +425,7 @@
 		LogL(KLogNoApplications);
 		User::Leave(KErrArgument);
 		}
+	CleanupStack::Pop(&aApplications);
 	}
 
 void CSWICertStoreTool::OpenInputFileL(const TDesC& aInputFile)