--- a/psmservices/psmserver/src/engine/psmbackupstorage.cpp Tue Feb 02 00:53:00 2010 +0200
+++ b/psmservices/psmserver/src/engine/psmbackupstorage.cpp Fri Mar 19 09:58:42 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<TXmlEngElement> 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 ) );