fix bug 162947 - small leak in nsXULDocument

sr=jst, r=timeless
This commit is contained in:
alecf%netscape.com 2002-08-16 01:04:40 +00:00
Родитель fc61097449
Коммит fa6fe66780
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -1850,6 +1850,9 @@ ClearBroadcasterMapEntry(PLDHashTable* aTable, PLDHashEntryHdr* aEntry)
{
BroadcasterMapEntry* entry =
NS_STATIC_CAST(BroadcasterMapEntry*, aEntry);
for (PRInt32 i = entry->mListeners.Count(); i>= 0; --i) {
delete (BroadcastListener*)entry->mListeners[i];
}
// N.B. that we need to manually run the dtor because we
// constructed the nsSmallVoidArray object in-place.