os/security/cryptoservices/filebasedcertificateandkeystores/source/generic/server/FSRunPackage.cpp
First public contribution.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
23 #include "FSRunPackage.h"
25 CRunPackage::~CRunPackage()
27 TInt count = iDeleteActions.Count();
28 for (TInt i = 0; i < count; ++i)
30 delete iDeleteActions[i];
33 iDeleteActions.Close();
36 // Adds a new destructor action - only called by AddDeleteOnly, AddCloseDelete, and
37 // AddReleaseOnly methods
38 TInt CRunPackage::AddDeleteAction(CBase* aAction)
47 err = iDeleteActions.Append(aAction);
51 // delete the action if we couldn't add