diff -r 030c4fbc13d7 -r b54b58ee9d58 authorisation/userpromptservice/database/test/tupsdb/source/tupsdbstep.cpp --- a/authorisation/userpromptservice/database/test/tupsdb/source/tupsdbstep.cpp Wed Apr 14 17:48:59 2010 +0300 +++ b/authorisation/userpromptservice/database/test/tupsdb/source/tupsdbstep.cpp Tue Apr 27 18:28:15 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-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" @@ -25,6 +25,7 @@ #include "tupsdbstep.h" #include + using namespace UserPromptService; @@ -449,23 +450,23 @@ upsDb = CDecisionDbW::NewL(iDbLocation,iFs); CleanupStack::PushL(upsDb); - RPointerArray recordList = GetDecisionsL(*upsDb,*filter,iCancel); + RPointerArray recordList; + CleanupResetAndDestroyPushL(recordList); + GetDecisionsL(*upsDb, *filter, iCancel, recordList); TInt recNum; recNum = recordList.Count(); if(recNum) - { - CleanupClosePushL(recordList); + { OpenDecisionFileL(EFileWrite); for(TInt i=0; i