// You should have received a copy of the GNU General Public License along
// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
-#include "../frmActivityMgr.h"
+#include "../actmgr/frmActivityMgr.h"
#include "../frmContact.h"
#include "../frmMain.h"
#include <wx/mstream.h>
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;
}