mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Fix dumb leak.
This commit is contained in:
parent
25e209dcc2
commit
806774dd9d
@ -83,6 +83,7 @@ nsElementMap::ReleaseContentList(PLHashEntry* aHashEntry, PRIntn aIndex, void* a
|
||||
while (head) {
|
||||
ContentListItem* doomed = head;
|
||||
head = head->mNext;
|
||||
NS_RELEASE(doomed->mContent);
|
||||
delete doomed;
|
||||
}
|
||||
|
||||
|
@ -83,6 +83,7 @@ nsElementMap::ReleaseContentList(PLHashEntry* aHashEntry, PRIntn aIndex, void* a
|
||||
while (head) {
|
||||
ContentListItem* doomed = head;
|
||||
head = head->mNext;
|
||||
NS_RELEASE(doomed->mContent);
|
||||
delete doomed;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user