Bug 637242, patch 1 of 3: Fix ref-counting bug. r=dbaron

This commit is contained in:
Mats Palmgren 2014-07-13 13:01:43 +00:00
parent af31fe5193
commit 7325331af2

View File

@ -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; ) {