зеркало из https://github.com/mozilla/gecko-dev.git
fix bug 162947 - small leak in nsXULDocument
sr=jst, r=timeless
This commit is contained in:
Родитель
fc61097449
Коммит
fa6fe66780
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче