agendainterface/agendautil/src/agendautil_p.cpp
changeset 37 360d55486d7f
parent 32 ea672fcb0ea0
child 49 5de72ea7a065
--- a/agendainterface/agendautil/src/agendautil_p.cpp	Thu May 27 12:51:15 2010 +0300
+++ b/agendainterface/agendautil/src/agendautil_p.cpp	Fri Jun 11 13:37:54 2010 +0300
@@ -1717,6 +1717,11 @@
             }
         }
     }
+	int count = instanceList.Count();
+	for (int i = count - 1; i >= 0; --i) {
+	            CCalInstance *instance = instanceList[i];
+	            delete instance;
+	        }
     CleanupStack::PopAndDestroy();
 }
 
@@ -2470,6 +2475,11 @@
 	} else {
 		isEmpty = true;
 	}
+	int count = instanceList.Count();
+	for (int i = count - 1; i >= 0; --i) {
+	            CCalInstance *instance = instanceList[i];
+	            delete instance;
+	        }
 	CleanupStack::PopAndDestroy();
 	return isEmpty;
 }