mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05:00
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:
parent
8fb6670857
commit
070630d297
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user