зеркало из https://github.com/mozilla/pjs.git
changed add ref to from NS_ADDREF to NS_IF_ADDREF
Bug 63329, r=kmcclusk sr=buster
This commit is contained in:
Родитель
e6bf2568f3
Коммит
e6efaf8e39
|
@ -1007,7 +1007,7 @@ nsIContent *
|
||||||
nsListControlFrame::GetOptionFromContent(nsIContent *aContent)
|
nsListControlFrame::GetOptionFromContent(nsIContent *aContent)
|
||||||
{
|
{
|
||||||
nsIContent * content = aContent;
|
nsIContent * content = aContent;
|
||||||
NS_ADDREF(content);
|
NS_IF_ADDREF(content);
|
||||||
while (nsnull != content) {
|
while (nsnull != content) {
|
||||||
if (IsOptionElement(content)) {
|
if (IsOptionElement(content)) {
|
||||||
return content;
|
return content;
|
||||||
|
|
|
@ -1007,7 +1007,7 @@ nsIContent *
|
||||||
nsListControlFrame::GetOptionFromContent(nsIContent *aContent)
|
nsListControlFrame::GetOptionFromContent(nsIContent *aContent)
|
||||||
{
|
{
|
||||||
nsIContent * content = aContent;
|
nsIContent * content = aContent;
|
||||||
NS_ADDREF(content);
|
NS_IF_ADDREF(content);
|
||||||
while (nsnull != content) {
|
while (nsnull != content) {
|
||||||
if (IsOptionElement(content)) {
|
if (IsOptionElement(content)) {
|
||||||
return content;
|
return content;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче