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); NxsMsgPendingVect::iterator vit = std::find(mMsgPendingValidate.begin(), mMsgPendingValidate.end(), id);
if(vit == mMsgPendingValidate.end()) if(vit == mMsgPendingValidate.end())
{ mMsgPendingValidate.push_back(GxsPendingItem<RsNxsMsg*, RsGxsGrpMsgIdPair>(msg, id,time(NULL)));
GxsPendingItem<RsNxsMsg*, RsGxsGrpMsgIdPair> item(msg, id,time(NULL)); else
mMsgPendingValidate.push_back(item); delete msg ;
}
} }
} }