зеркало из https://github.com/mozilla/pjs.git
Fix AtomImpl leaks (includes bug 32608). r=pollmann@netscape.com
This commit is contained in:
Родитель
1b3f6ef567
Коммит
27dfd22e4f
|
@ -511,7 +511,7 @@ nsComboboxControlFrame::ShowPopup(PRBool aShowPopup)
|
|||
// which causes the active state to be removed from the event state manager immediately after it
|
||||
// it the select is set to the active state.
|
||||
|
||||
nsCOMPtr<nsIAtom> activeAtom ( dont_QueryInterface(NS_NewAtom(kMozDropdownActive)));
|
||||
nsCOMPtr<nsIAtom> activeAtom ( dont_AddRef(NS_NewAtom(kMozDropdownActive)));
|
||||
if (PR_TRUE == aShowPopup) {
|
||||
mContent->SetAttribute(kNameSpaceID_None, activeAtom, nsAutoString(), PR_TRUE);
|
||||
} else {
|
||||
|
|
|
@ -751,6 +751,7 @@ nsHTMLFrameInnerFrame::CreateDocShell(nsIPresContext* aPresContext,
|
|||
value.Mid(valuePiece, 7, 1) == 1 && valuePiece.EqualsWithConversion("-")))
|
||||
isContent = PR_TRUE;
|
||||
}
|
||||
NS_IF_RELEASE(typeAtom);
|
||||
if (isContent) {
|
||||
// The web shell's type is content.
|
||||
docShellAsItem->SetItemType(nsIDocShellTreeItem::typeContent);
|
||||
|
|
|
@ -751,6 +751,7 @@ nsHTMLFrameInnerFrame::CreateDocShell(nsIPresContext* aPresContext,
|
|||
value.Mid(valuePiece, 7, 1) == 1 && valuePiece.EqualsWithConversion("-")))
|
||||
isContent = PR_TRUE;
|
||||
}
|
||||
NS_IF_RELEASE(typeAtom);
|
||||
if (isContent) {
|
||||
// The web shell's type is content.
|
||||
docShellAsItem->SetItemType(nsIDocShellTreeItem::typeContent);
|
||||
|
|
|
@ -511,7 +511,7 @@ nsComboboxControlFrame::ShowPopup(PRBool aShowPopup)
|
|||
// which causes the active state to be removed from the event state manager immediately after it
|
||||
// it the select is set to the active state.
|
||||
|
||||
nsCOMPtr<nsIAtom> activeAtom ( dont_QueryInterface(NS_NewAtom(kMozDropdownActive)));
|
||||
nsCOMPtr<nsIAtom> activeAtom ( dont_AddRef(NS_NewAtom(kMozDropdownActive)));
|
||||
if (PR_TRUE == aShowPopup) {
|
||||
mContent->SetAttribute(kNameSpaceID_None, activeAtom, nsAutoString(), PR_TRUE);
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче