mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
attempt to fix memory leak in RsGenExchange. To be tested.
This commit is contained in:
parent
aa471e5b2f
commit
9e2241a940
1 changed files with 3 additions and 4 deletions
|
@ -3037,10 +3037,9 @@ void RsGenExchange::processRecvdMessages()
|
|||
NxsMsgPendingVect::iterator vit = std::find(mMsgPendingValidate.begin(), mMsgPendingValidate.end(), id);
|
||||
|
||||
if(vit == mMsgPendingValidate.end())
|
||||
{
|
||||
GxsPendingItem<RsNxsMsg*, RsGxsGrpMsgIdPair> item(msg, id,time(NULL));
|
||||
mMsgPendingValidate.push_back(item);
|
||||
}
|
||||
mMsgPendingValidate.push_back(GxsPendingItem<RsNxsMsg*, RsGxsGrpMsgIdPair>(msg, id,time(NULL)));
|
||||
else
|
||||
delete msg ;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue