mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed proper deleting of pending transactions inside mutex to avoid concurrent thread to use them
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7713 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e2daec7134
commit
705598b0b4
@ -65,7 +65,16 @@ RsGxsNetService::RsGxsNetService(uint16_t servType, RsGeneralDataService *gds,
|
||||
|
||||
RsGxsNetService::~RsGxsNetService()
|
||||
{
|
||||
RS_STACK_MUTEX(mNxsMutex) ;
|
||||
|
||||
for(TransactionsPeerMap::iterator it = mTransactions.begin();it!=mTransactions.end();++it)
|
||||
{
|
||||
for(TransactionIdMap::iterator it2 = it->second.begin();it2!=it->second.end();++it2)
|
||||
delete it2->second ;
|
||||
|
||||
it->second.clear() ;
|
||||
}
|
||||
mTransactions.clear() ;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user