added missing delete causing small leak

This commit is contained in:
csoler 2021-01-25 20:33:27 +01:00
parent c85209693f
commit 5c08dcb0de
2 changed files with 4 additions and 2 deletions

View File

@ -1530,6 +1530,8 @@ int RsDataService::updateGroupMetaData(const GrpLocMetaData& meta)
if(meta)
mGrpMetaDataCache.updateMeta(grpId,meta);
delete c;
}
return 1;
@ -1564,6 +1566,8 @@ int RsDataService::updateMessageMetaData(const MsgLocMetaData& metaData)
if(meta)
mMsgMetaDataCache[grpId].updateMeta(msgId,meta);
delete c;
}
return 1;

View File

@ -1512,8 +1512,6 @@ bool p3GxsCircles::locked_setGroupUnprocessedStatus(RsGxsCircleCache& cache,bool
RsGenExchange::setGroupStatusFlags(token2, RsGxsGroupId(cache.mCircleId), unprocessed, GXS_SERV::GXS_GRP_STATUS_UNPROCESSED);
std::cerr << "********** new token for setGrpStatusFlags: " << token2 << std::endl;
// Now we need to async acknowledge the token when the job is finished. We cannot do this sync because it's the
// current thread that takes care of calling the handling of group processing.