attempt to fix memory leak in RsGenExchange. To be tested.

This commit is contained in:
csoler 2017-07-21 23:15:50 +02:00
parent aa471e5b2f
commit 9e2241a940

View File

@ -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 ;
}
}