diff -r 4e1aa6a622a0 -r e978f818f9bd psmservices/psmserver/src/engine/psmstorage.cpp --- a/psmservices/psmserver/src/engine/psmstorage.cpp Tue Feb 02 00:53:00 2010 +0200 +++ b/psmservices/psmserver/src/engine/psmstorage.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" @@ -112,6 +112,7 @@ TBool setFound( EFalse ); TXmlEngElement settings; RXmlEngNodeList nodeList; + CleanupClosePushL(nodeList); if ( iStorageRoot.NotNull() ) { @@ -141,7 +142,7 @@ settings = nodeList.Next().AsElement(); } } - + CleanupStack::PopAndDestroy(&nodeList); if ( !setFound ) { COMPONENT_TRACE( ( _L( "PSM Server - CPsmStorage::FindConfigurationSet() - Mode not found: %i, LEAVE" ), aMode ) ); @@ -166,6 +167,7 @@ // Get first setElemens RXmlEngNodeList nodeList; + CleanupClosePushL(nodeList); settings.GetElementsByTagNameL(nodeList, KPsmSetItem); TXmlEngElement setElement = nodeList.Next().AsElement(); @@ -207,7 +209,7 @@ // handle next element set setElement = nodeList.Next().AsElement(); } - + CleanupStack::PopAndDestroy(&nodeList); COMPONENT_TRACE( ( _L( "PSM Server - CPsmStorage::CreateConfigArrayL() - return" ) ) ); } @@ -227,6 +229,7 @@ // Get first setElemens RXmlEngNodeList nodeList; + CleanupClosePushL(nodeList); settings.GetElementsByTagNameL(nodeList, KPsmSetItem); TXmlEngElement setElement = nodeList.Next().AsElement(); @@ -287,6 +290,7 @@ setElement = nodeList.Next().AsElement(); } + CleanupStack::PopAndDestroy(&nodeList); COMPONENT_TRACE( ( _L( "PSM Server - CPsmStorage::GetConfigurationL() - return" ) ) ); }