simpleengine/xdmrlspres/src/prescondvalidity.cpp
branchRCL_3
changeset 35 fbd2e7cec7ef
parent 34 2669f8761a99
--- a/simpleengine/xdmrlspres/src/prescondvalidity.cpp	Tue Aug 31 15:35:50 2010 +0300
+++ b/simpleengine/xdmrlspres/src/prescondvalidity.cpp	Wed Sep 01 12:23:14 2010 +0100
@@ -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;
 	}