Missed an out-of-memory check. b=335729 r+sr=bzbarsky

This commit is contained in:
dbaron%dbaron.org 2006-04-27 23:56:53 +00:00
parent c31f83b236
commit 16f0806114

View File

@ -463,6 +463,10 @@ nsRuleNode::Transition(nsIStyleRule* aRule, nsRuleNode** aResult)
if (ChildrenAreHashed()) {
ChildrenHashEntry *entry = NS_STATIC_CAST(ChildrenHashEntry*,
PL_DHashTableOperate(ChildrenHash(), aRule, PL_DHASH_ADD));
if (!entry) {
*aResult = nsnull;
return NS_ERROR_OUT_OF_MEMORY;
}
if (entry->mRuleNode)
next = entry->mRuleNode;
else {