mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Fix crash from over-releasing from bryner's changes yesterday. b=114713
This commit is contained in:
parent
6dd68f3c64
commit
1a3d5baedd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user