mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed memory leak in RsDataService::retrieveNxsGrps when no group is available.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6537 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9d61832a86
commit
7330ab894c
@ -705,7 +705,7 @@ int RsDataService::retrieveNxsGrps(std::map<std::string, RsNxsGrp *> &grp, bool
|
||||
}
|
||||
}
|
||||
|
||||
if(withMeta)
|
||||
if(withMeta && !grp.empty())
|
||||
{
|
||||
std::map<RsGxsGroupId, RsGxsGrpMetaData*> metaMap;
|
||||
std::map<std::string, RsNxsGrp *>::iterator mit = grp.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user