зеркало из https://github.com/mozilla/gecko-dev.git
Bug 637242, patch 1 of 3: Fix ref-counting bug. r=dbaron
This commit is contained in:
Родитель
2be3560244
Коммит
270cd1ba97
|
@ -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; ) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче