mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Took out some Addrefs, causing leaks
This commit is contained in:
parent
38d524ab94
commit
ae9532ab74
@ -1227,7 +1227,7 @@ nsComboboxControlFrame::CreateAnonymousContent(nsISupportsArray& aChildList)
|
||||
//nsIAtom* tag = NS_NewAtom("mozcombodisplay");
|
||||
nsIAtom* tag = NS_NewAtom("input");
|
||||
NS_NewHTMLInputElement(&mDisplayContent, tag);
|
||||
NS_ADDREF(mDisplayContent);
|
||||
//NS_ADDREF(mDisplayContent);
|
||||
mDisplayContent->SetAttribute(kNameSpaceID_None, nsHTMLAtoms::type, nsAutoString("button"), PR_FALSE);
|
||||
|
||||
//XXX: Do not use nsHTMLAtoms::id use nsHTMLAtoms::kClass instead. There will end up being multiple
|
||||
@ -1240,7 +1240,7 @@ nsComboboxControlFrame::CreateAnonymousContent(nsISupportsArray& aChildList)
|
||||
// create button which drops the list down
|
||||
tag = NS_NewAtom("input");
|
||||
NS_NewHTMLInputElement(&mButtonContent, tag);
|
||||
NS_ADDREF(mButtonContent);
|
||||
//NS_ADDREF(mButtonContent);
|
||||
mButtonContent->SetAttribute(kNameSpaceID_None, nsHTMLAtoms::type, nsAutoString("button"), PR_FALSE);
|
||||
aChildList.AppendElement(mButtonContent);
|
||||
|
||||
|
@ -1227,7 +1227,7 @@ nsComboboxControlFrame::CreateAnonymousContent(nsISupportsArray& aChildList)
|
||||
//nsIAtom* tag = NS_NewAtom("mozcombodisplay");
|
||||
nsIAtom* tag = NS_NewAtom("input");
|
||||
NS_NewHTMLInputElement(&mDisplayContent, tag);
|
||||
NS_ADDREF(mDisplayContent);
|
||||
//NS_ADDREF(mDisplayContent);
|
||||
mDisplayContent->SetAttribute(kNameSpaceID_None, nsHTMLAtoms::type, nsAutoString("button"), PR_FALSE);
|
||||
|
||||
//XXX: Do not use nsHTMLAtoms::id use nsHTMLAtoms::kClass instead. There will end up being multiple
|
||||
@ -1240,7 +1240,7 @@ nsComboboxControlFrame::CreateAnonymousContent(nsISupportsArray& aChildList)
|
||||
// create button which drops the list down
|
||||
tag = NS_NewAtom("input");
|
||||
NS_NewHTMLInputElement(&mButtonContent, tag);
|
||||
NS_ADDREF(mButtonContent);
|
||||
//NS_ADDREF(mButtonContent);
|
||||
mButtonContent->SetAttribute(kNameSpaceID_None, nsHTMLAtoms::type, nsAutoString("button"), PR_FALSE);
|
||||
aChildList.AppendElement(mButtonContent);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user