Added destructor to p3LinkMgrIMPL.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8528 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-06-18 17:05:02 +00:00
parent a0c0b9afa5
commit 4d364042ad
2 changed files with 6 additions and 0 deletions

View File

@ -162,6 +162,11 @@ p3LinkMgrIMPL::p3LinkMgrIMPL(p3PeerMgrIMPL *peerMgr, p3NetMgrIMPL *netMgr)
return; return;
} }
p3LinkMgrIMPL::~p3LinkMgrIMPL()
{
delete(mDNSResolver);
}
bool p3LinkMgrIMPL::setLocalAddress(const struct sockaddr_storage &addr) bool p3LinkMgrIMPL::setLocalAddress(const struct sockaddr_storage &addr)
{ {
RsStackMutex stack(mLinkMtx); /****** STACK LOCK MUTEX *******/ RsStackMutex stack(mLinkMtx); /****** STACK LOCK MUTEX *******/

View File

@ -258,6 +258,7 @@ virtual bool getFriendNetStatus(const RsPeerId &id, peerConnectState &state); //
/************************************************************************************************/ /************************************************************************************************/
p3LinkMgrIMPL(p3PeerMgrIMPL *peerMgr, p3NetMgrIMPL *netMgr); p3LinkMgrIMPL(p3PeerMgrIMPL *peerMgr, p3NetMgrIMPL *netMgr);
virtual ~p3LinkMgrIMPL();
void tick(); void tick();