mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-05 15:59:45 +00:00
fix off-by-one error from bug 162947, found by rbs@maths.uq.edu.au
(no functional change, just prevents assertion)
This commit is contained in:
parent
aca536278b
commit
f34730c3ac
@ -1850,7 +1850,7 @@ ClearBroadcasterMapEntry(PLDHashTable* aTable, PLDHashEntryHdr* aEntry)
|
||||
{
|
||||
BroadcasterMapEntry* entry =
|
||||
NS_STATIC_CAST(BroadcasterMapEntry*, aEntry);
|
||||
for (PRInt32 i = entry->mListeners.Count(); i>= 0; --i) {
|
||||
for (PRInt32 i = entry->mListeners.Count()-1; i>= 0; --i) {
|
||||
delete (BroadcastListener*)entry->mListeners[i];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user