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:
alecf%netscape.com 2002-08-16 21:47:12 +00:00
parent aca536278b
commit f34730c3ac

View File

@ -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];
}