mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -05:00
Fix Valgrind report at End of RS
XXXX bytes in XX blocks are still reachable in loss record.
This commit is contained in:
parent
1ee38877ca
commit
3fff0869a2
@ -720,6 +720,7 @@ void RsGxsDataAccess::processRequests()
|
||||
{
|
||||
if(now > mRequestQueue.begin()->second->reqTime + MAX_REQUEST_AGE)
|
||||
{
|
||||
delete mRequestQueue.begin()->second;
|
||||
mRequestQueue.erase(mRequestQueue.begin());
|
||||
continue;
|
||||
}
|
||||
@ -735,6 +736,7 @@ void RsGxsDataAccess::processRequests()
|
||||
#ifdef DATA_DEBUG
|
||||
RsDbg() << " request " << mRequestQueue.begin()->second->token << ": status = " << mRequestQueue.begin()->second->status << ": removing from the RequestQueue" << std::endl;
|
||||
#endif
|
||||
delete mRequestQueue.begin()->second;
|
||||
mRequestQueue.erase(mRequestQueue.begin());
|
||||
continue;
|
||||
break;
|
||||
@ -746,7 +748,7 @@ void RsGxsDataAccess::processRequests()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // END OF MUTEX.
|
||||
|
||||
if (!req)
|
||||
break;
|
||||
@ -837,9 +839,9 @@ void RsGxsDataAccess::processRequests()
|
||||
RsDbg() << " Request failed. Marking as FAILED." << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
} // END OF MUTEX.
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user