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
Родитель 2be3560244
Коммит 270cd1ba97
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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