Fix crash from over-releasing from bryner's changes yesterday. b=114713

This commit is contained in:
dbaron%dbaron.org 2003-02-22 15:54:04 +00:00
parent 6dd68f3c64
commit 1a3d5baedd
2 changed files with 0 additions and 6 deletions

View File

@ -10656,7 +10656,6 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
// data that this rule cached in the rule tree.
if (primaryStyleFrame) {
styleContext = primaryStyleFrame->GetStyleContext();
styleContext->AddRef();
} else {
// We might be in the undisplayed map. Retrieve the style context from there.
nsCOMPtr<nsIFrameManager> frameManager;
@ -10676,8 +10675,6 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
#endif
}
}
if (styleContext)
styleContext->Release();
}
// first see if we need to manage the style system:

View File

@ -10656,7 +10656,6 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
// data that this rule cached in the rule tree.
if (primaryStyleFrame) {
styleContext = primaryStyleFrame->GetStyleContext();
styleContext->AddRef();
} else {
// We might be in the undisplayed map. Retrieve the style context from there.
nsCOMPtr<nsIFrameManager> frameManager;
@ -10676,8 +10675,6 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext,
#endif
}
}
if (styleContext)
styleContext->Release();
}
// first see if we need to manage the style system: