ActListFinDTPtr->insert(std::make_pair(iter->first, adt));
+ // Delete the connection object.
+
+ std::map<int, CardDAV*>::iterator ConnObject = ActListConnPtr->find(iter->first);
+ delete ConnObject->second;
+ ConnObject->second = NULL;
+
}
if (ClearupProcessed == TRUE){
std::map<int,wxString> *ActListDetail, bool *TasksActive,
wxListCtrl *lstActivity, wxStaticText *lblDetails, wxGauge *GauProgress,
void *ActMgr, wxActTimer *ActTimer, wxActProcessTimer *ActProcessTimer,
- std::map<int,wxDateTime> *ActListFinDT){
+ std::map<int,wxDateTime> *ActListFinDT, std::map<int, CardDAV*> *ActListConn){
ActListPtr = ActList;
ActListUIPtr = ActListUI;
ActTimerPtr = ActTimer;
ActProcessTimerPtr = ActProcessTimer;
ActListFinDTPtr = ActListFinDT;
+ ActListConnPtr = ActListConn;
}