mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed memory leak in RsGxsNetService
This commit is contained in:
parent
7111579954
commit
0bd005657d
@ -3818,10 +3818,7 @@ void RsGxsNetService::handleRecvSyncGroup(RsNxsSyncGrpReqItem *item)
|
||||
uint32_t status = RS_NXS_ITEM_ENCRYPTION_STATUS_UNKNOWN ;
|
||||
|
||||
if(encryptSingleNxsItem(gItem, grpMeta->mCircleId,mit->first, encrypted_item,status))
|
||||
{
|
||||
itemL.push_back(encrypted_item) ;
|
||||
delete gItem ;
|
||||
}
|
||||
else
|
||||
{
|
||||
switch(status)
|
||||
@ -3836,6 +3833,7 @@ void RsGxsNetService::handleRecvSyncGroup(RsNxsSyncGrpReqItem *item)
|
||||
std::cerr << " Could not encrypt item for grpId " << grpMeta->mGroupId << " for circle " << grpMeta->mCircleId << ". Not sending it." << std::endl;
|
||||
}
|
||||
}
|
||||
delete gItem ;
|
||||
}
|
||||
else
|
||||
itemL.push_back(gItem);
|
||||
|
Loading…
Reference in New Issue
Block a user