mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 07:41:20 -04:00
- Removed not used members from RsGenExchange and p3IdService
- Fixed memory leaks in p3PostBase git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7425 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2785094c97
commit
b85459ee02
3 changed files with 45 additions and 41 deletions
|
@ -863,7 +863,6 @@ private:
|
|||
|
||||
private:
|
||||
|
||||
std::vector<RsGxsNotify*> mChanges;
|
||||
std::vector<RsGxsGroupChange*> mGroupChange;
|
||||
std::vector<RsGxsMsgChange*> mMsgChange;
|
||||
|
||||
|
|
|
@ -476,9 +476,6 @@ std::string genRandomId(int len = 20);
|
|||
* Other Data that is protected by the Mutex.
|
||||
*/
|
||||
|
||||
std::vector<RsGxsGroupChange*> mGroupChange;
|
||||
std::vector<RsGxsMsgChange*> mMsgChange;
|
||||
|
||||
private:
|
||||
|
||||
std::map<uint32_t, std::set<RsGxsGroupId> > mIdsPendingCache;
|
||||
|
|
|
@ -534,6 +534,10 @@ void p3PostBase::background_loadMsgs(const uint32_t &token, bool unprocessed)
|
|||
changes.push_back(msgChanges);
|
||||
receiveHelperChanges(changes);
|
||||
}
|
||||
else
|
||||
{
|
||||
delete(msgChanges);
|
||||
}
|
||||
|
||||
/* request the summary info from the parents */
|
||||
uint32_t token_b;
|
||||
|
@ -669,6 +673,10 @@ void p3PostBase::background_updateVoteCounts(const uint32_t &token)
|
|||
changes.push_back(msgChanges);
|
||||
receiveHelperChanges(changes);
|
||||
}
|
||||
else
|
||||
{
|
||||
delete(msgChanges);
|
||||
}
|
||||
|
||||
// DONE!.
|
||||
background_cleanup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue