From 4d364042ad8feeea49f83e9e47b2c67ac030d069 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Thu, 18 Jun 2015 17:05:02 +0000 Subject: [PATCH] Added destructor to p3LinkMgrIMPL. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8528 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/p3linkmgr.cc | 5 +++++ libretroshare/src/pqi/p3linkmgr.h | 1 + 2 files changed, 6 insertions(+) diff --git a/libretroshare/src/pqi/p3linkmgr.cc b/libretroshare/src/pqi/p3linkmgr.cc index ae71d8e87..6836f8c4b 100644 --- a/libretroshare/src/pqi/p3linkmgr.cc +++ b/libretroshare/src/pqi/p3linkmgr.cc @@ -162,6 +162,11 @@ p3LinkMgrIMPL::p3LinkMgrIMPL(p3PeerMgrIMPL *peerMgr, p3NetMgrIMPL *netMgr) return; } +p3LinkMgrIMPL::~p3LinkMgrIMPL() +{ + delete(mDNSResolver); +} + bool p3LinkMgrIMPL::setLocalAddress(const struct sockaddr_storage &addr) { RsStackMutex stack(mLinkMtx); /****** STACK LOCK MUTEX *******/ diff --git a/libretroshare/src/pqi/p3linkmgr.h b/libretroshare/src/pqi/p3linkmgr.h index 1931bb10e..a35bf508c 100644 --- a/libretroshare/src/pqi/p3linkmgr.h +++ b/libretroshare/src/pqi/p3linkmgr.h @@ -258,6 +258,7 @@ virtual bool getFriendNetStatus(const RsPeerId &id, peerConnectState &state); // /************************************************************************************************/ p3LinkMgrIMPL(p3PeerMgrIMPL *peerMgr, p3NetMgrIMPL *netMgr); + virtual ~p3LinkMgrIMPL(); void tick();