--- a/simpleengine/xdmrlspres/src/prescondvalidity.cpp Tue Apr 27 17:03:39 2010 +0300
+++ b/simpleengine/xdmrlspres/src/prescondvalidity.cpp Tue May 11 16:35:18 2010 +0300
@@ -61,6 +61,8 @@
OPENG_DP(D_OPENG_LIT( "TPresCondValidity::GetValidity()" ) );
OPENG_DP(D_OPENG_LIT( " aRuleID = %S"),&aRuleID);
+ CleanupClosePushL (aValidTimes);
+
CXdmDocumentNode* validityNode = GetValidityNodeL(aRuleID, EFalse);
if(validityNode==NULL)
return KErrNotFound;
@@ -99,7 +101,7 @@
for(TInt i=0; i<nodeCount; i++)
{
- aValidTimes.Append(myTimePeriod);
+ aValidTimes.AppendL(myTimePeriod);
// processing from
(fromNodes[i])->SetLeafNode(ETrue);
@@ -134,6 +136,8 @@
fromNodes.Close();
untilNodes.Close();
+
+ CleanupStack::Pop();
return KErrNone;
}