mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 637242, patch 1 of 3: Fix ref-counting bug. r=dbaron
This commit is contained in:
parent
af31fe5193
commit
7325331af2
@ -8955,7 +8955,7 @@ nsRuleNode::Sweep()
|
||||
PLDHashTable *children = ChildrenHash();
|
||||
uint32_t oldChildCount = children->entryCount;
|
||||
PL_DHashTableEnumerate(children, SweepRuleNodeChildren, nullptr);
|
||||
childrenDestroyed = children->entryCount - oldChildCount;
|
||||
childrenDestroyed = oldChildCount - children->entryCount;
|
||||
} else {
|
||||
childrenDestroyed = 0;
|
||||
for (nsRuleNode **children = ChildrenListPtr(); *children; ) {
|
||||
|
Loading…
Reference in New Issue
Block a user