diff -r a811597961f0 -r 1a73e8f1b64d psmservices/psmserver/src/engine/psmbackupstorage.cpp --- a/psmservices/psmserver/src/engine/psmbackupstorage.cpp Sat Feb 20 00:05:00 2010 +0200 +++ b/psmservices/psmserver/src/engine/psmbackupstorage.cpp Fri Mar 12 15:50:01 2010 +0200 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007 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 "Eclipse Public License v1.0" @@ -194,6 +194,7 @@ // Search correct set item for aKey TBool setFound( EFalse ); RXmlEngNodeList nodeList; + CleanupClosePushL(nodeList); aConfigSet.GetElementsByTagNameL(nodeList, KPsmSetItem); TXmlEngElement setItem = nodeList.Next().AsElement(); @@ -205,7 +206,7 @@ if ( aKey == setItemKey ) { - // Set found, no need to loop anumore + // Set found, no need to loop any more setFound = ETrue; } else @@ -214,7 +215,8 @@ setItem = nodeList.Next().AsElement(); } } - + + CleanupStack::PopAndDestroy(&nodeList); if ( !setFound ) { COMPONENT_TRACE( ( _L( "PSM Server - CPsmBackupStorage::FindSetItemL() - Not found id:%i, LEAVE" ), aKey ) );