mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 16:09:35 -05:00
fixed memory leak in FileIndexStore
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8508 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e5425f31dc
commit
72033c0efa
@ -84,10 +84,6 @@ int FileIndexStore::loadCache(const RsCacheData &data)
|
||||
//delete fi;
|
||||
}
|
||||
|
||||
/* load Cache */
|
||||
|
||||
FileIndex *finew = new FileIndex(data.pid);
|
||||
|
||||
if(mPeerMgr->isFriend(data.pid))
|
||||
{
|
||||
// We discard file lists from non friends. This is the place to remove file lists of deleted friends
|
||||
@ -95,6 +91,9 @@ int FileIndexStore::loadCache(const RsCacheData &data)
|
||||
// at next restart.
|
||||
//
|
||||
|
||||
/* load Cache */
|
||||
FileIndex *finew = new FileIndex(data.pid);
|
||||
|
||||
if (finew->loadIndex(data.path + '/' + data.name, data.hash, data.size))
|
||||
{
|
||||
#ifdef FIS_DEBUG2
|
||||
|
Loading…
Reference in New Issue
Block a user