mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-31 18:29:02 -04:00
fixed memory leak in deleteGroup and removed unnecessary pointer in the functions called below
This commit is contained in:
parent
a545481daa
commit
cf2edb50b4
4 changed files with 12 additions and 19 deletions
|
@ -1433,17 +1433,14 @@ bool p3IdService::updateGroup(uint32_t& token, RsGxsIdGroup &group)
|
|||
|
||||
bool p3IdService::deleteGroup(uint32_t& token, RsGxsIdGroup &group)
|
||||
{
|
||||
RsGxsId id = RsGxsId(group.mMeta.mGroupId.toStdString());
|
||||
RsGxsIdGroupItem* item = new RsGxsIdGroupItem();
|
||||
|
||||
item->fromGxsIdGroup(group,false) ;
|
||||
RsGxsId id(group.mMeta.mGroupId);
|
||||
|
||||
#ifdef DEBUG_IDS
|
||||
std::cerr << "p3IdService::deleteGroup() Deleting RsGxsId: " << id;
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
RsGenExchange::deleteGroup(token, item);
|
||||
RsGenExchange::deleteGroup(token,group.mMeta.mGroupId);
|
||||
|
||||
// if its in the cache - clear it.
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue