added missing delete in p3discovery2::processContactInfo()

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8100 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-03-30 17:04:57 +00:00
parent 8fb6670857
commit 070630d297

View File

@ -855,6 +855,7 @@ void p3discovery2::processContactInfo(const SSLID &fromId, const RsDiscContactIt
std::cerr << item->pgpId << " Ignoring Info on self";
std::cerr << std::endl;
#endif
delete item;
return;
}
@ -885,6 +886,7 @@ void p3discovery2::processContactInfo(const SSLID &fromId, const RsDiscContactIt
mNetMgr->netAssistKnownPeer(item->sslId, item->extAddrV4.addr,
NETASSIST_KNOWN_PEER_FOF | NETASSIST_KNOWN_PEER_OFFLINE);
}
delete item;
return;
}
@ -923,6 +925,8 @@ void p3discovery2::processContactInfo(const SSLID &fromId, const RsDiscContactIt
if(should_notify_discovery)
RsServer::notify()->notifyDiscInfoChanged();
delete item;
}