--- a/datacommsserver/esockserver/CoreProviders/src/coretiernotificationstates.cpp Fri Jan 22 10:58:59 2010 +0200
+++ b/datacommsserver/esockserver/CoreProviders/src/coretiernotificationstates.cpp Tue Jan 26 13:09:14 2010 +0200
@@ -175,8 +175,8 @@
message_cast<TCFDataCollector::TTierDataCollectors>(iContext.iMessage);
RPointerArray<MDataCollector>* collrs = static_cast< RPointerArray<MDataCollector>*> (inMsg.iPtr);
- CleanupStack::PushL(collrs);
- CleanupResetAndDestroyPushL(*collrs);
+ CleanupStack::PushL(collrs); // We take ownership of the collector array
+ CleanupResetAndDestroyPushL(*collrs); // Note that RPointerArray<> doesn't destroy contained items at destruction so this cleanup item is needed
CTierNotificationActivity* act = static_cast<CTierNotificationActivity*>(iContext.iNodeActivity);
// my custom StartL (sets the activity going)