From e6efaf8e3939adb12e18d0140b82f0db394220a2 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Mon, 8 Jan 2001 14:06:34 +0000 Subject: [PATCH] changed add ref to from NS_ADDREF to NS_IF_ADDREF Bug 63329, r=kmcclusk sr=buster --- layout/forms/nsListControlFrame.cpp | 2 +- layout/html/forms/src/nsListControlFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/forms/nsListControlFrame.cpp b/layout/forms/nsListControlFrame.cpp index c3d52fa1e26..71e65069274 100644 --- a/layout/forms/nsListControlFrame.cpp +++ b/layout/forms/nsListControlFrame.cpp @@ -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; diff --git a/layout/html/forms/src/nsListControlFrame.cpp b/layout/html/forms/src/nsListControlFrame.cpp index c3d52fa1e26..71e65069274 100644 --- a/layout/html/forms/src/nsListControlFrame.cpp +++ b/layout/html/forms/src/nsListControlFrame.cpp @@ -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;