mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1089438, reduce sanitizer warning spew, r=jst
--HG-- extra : rebase_source : d081dc4d4560b24dfa6b67464070dcb6559a4852
This commit is contained in:
parent
3e95f2d234
commit
2749a2b6be
@ -1082,8 +1082,9 @@ nsSHistory::GloballyEvictContentViewers()
|
||||
|
||||
nsTArray<TransactionAndDistance> transactions;
|
||||
|
||||
nsSHistory *shist = static_cast<nsSHistory*>(PR_LIST_HEAD(&gSHistoryList));
|
||||
while (shist != &gSHistoryList) {
|
||||
PRCList* listEntry = PR_LIST_HEAD(&gSHistoryList);
|
||||
while (listEntry != &gSHistoryList) {
|
||||
nsSHistory* shist = static_cast<nsSHistory*>(listEntry);
|
||||
|
||||
// Maintain a list of the transactions which have viewers and belong to
|
||||
// this particular shist object. We'll add this list to the global list,
|
||||
@ -1142,7 +1143,7 @@ nsSHistory::GloballyEvictContentViewers()
|
||||
// We've found all the transactions belonging to shist which have viewers.
|
||||
// Add those transactions to our global list and move on.
|
||||
transactions.AppendElements(shTransactions);
|
||||
shist = static_cast<nsSHistory*>(PR_NEXT_LINK(shist));
|
||||
listEntry = PR_NEXT_LINK(shist);
|
||||
}
|
||||
|
||||
// We now have collected all cached content viewers. First check that we
|
||||
|
Loading…
Reference in New Issue
Block a user