calendarengines/versit2/src/ICalValue.cpp
branchRCL_3
changeset 16 55d60436f00b
parent 0 f979ecb2b13e
child 29 12af337248b1
--- a/calendarengines/versit2/src/ICalValue.cpp	Tue Apr 27 16:36:22 2010 +0300
+++ b/calendarengines/versit2/src/ICalValue.cpp	Tue May 11 16:12:24 2010 +0300
@@ -26,6 +26,7 @@
 // User includes.
 #include "ICalKeyWords.h"		// Literals
 #include "ICalRuleSegment.h"	// CICalRuleSegment
+#include "CleanupPointerArray.h"   // For TCleanupPointerArray
 
 // Constants.
 
@@ -814,7 +815,7 @@
 		}
 		
 	TUint charNum(0);
-	
+	CleanupPointerArrayPushL(aRuleSegmentArray);
 	do
 		{
 		// Create a rule segment from characters charNum to nextSemiColon
@@ -847,6 +848,7 @@
 		}
 	while (charNum < iValue->Length());
 	
+	CleanupStack::Pop(&aRuleSegmentArray);
 	TRACE_EXIT_POINT;
 	}