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

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

@ -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:

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

@ -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: