зеркало из 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)
|
||||
{
|
||||
nsIContent * content = aContent;
|
||||
NS_ADDREF(content);
|
||||
NS_IF_ADDREF(content);
|
||||
while (nsnull != content) {
|
||||
if (IsOptionElement(content)) {
|
||||
return content;
|
||||
|
|
|
@ -1007,7 +1007,7 @@ nsIContent *
|
|||
nsListControlFrame::GetOptionFromContent(nsIContent *aContent)
|
||||
{
|
||||
nsIContent * content = aContent;
|
||||
NS_ADDREF(content);
|
||||
NS_IF_ADDREF(content);
|
||||
while (nsnull != content) {
|
||||
if (IsOptionElement(content)) {
|
||||
return content;
|
||||
|
|
Загрузка…
Ссылка в новой задаче