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:
thunder2 2013-07-24 11:51:23 +00:00
parent 9d61832a86
commit 7330ab894c

View File

@ -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<RsGxsGroupId, RsGxsGrpMetaData*> metaMap;
std::map<std::string, RsNxsGrp *>::iterator mit = grp.begin(); std::map<std::string, RsNxsGrp *>::iterator mit = grp.begin();