added 3 missing delete, responsible for small memory leaks

This commit is contained in:
cyril soler 2017-02-01 14:32:35 +01:00
parent 0ad581a0ff
commit 873fbf98ad
2 changed files with 5 additions and 0 deletions

View File

@ -4179,6 +4179,7 @@ void RsGxsNetService::handleRecvSyncMessage(RsNxsSyncMsgReqItem *item,bool item_
delete *it ;
itemL.clear() ;
delete mItem ;
break ;
}
}

View File

@ -1073,6 +1073,8 @@ std::string p3Peers::getPGPKey(const RsPgpId& pgp_id,bool include_signatures)
RsCertificate cert( Detail,mem_block,mem_block_size ) ;
delete[] mem_block ;
return cert.armouredPGPKey() ;
}
@ -1125,6 +1127,8 @@ std::string p3Peers::GetRetroshareInvite(const RsPeerId& ssl_id,bool include_sig
RsCertificate cert( Detail,mem_block,mem_block_size ) ;
delete[] mem_block ;
return cert.toStdString() ;
}