From d99ef26184eae64ad0d44a112453c6adff1a0731 Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Sat, 15 Jan 2000 01:41:22 +0000 Subject: [PATCH] r=pollmann. Fix for bug 22237. --- content/html/document/src/nsHTMLContentSink.cpp | 4 ++-- layout/html/document/src/nsHTMLContentSink.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/html/document/src/nsHTMLContentSink.cpp b/content/html/document/src/nsHTMLContentSink.cpp index 17a5db06c18..3006c839edd 100644 --- a/content/html/document/src/nsHTMLContentSink.cpp +++ b/content/html/document/src/nsHTMLContentSink.cpp @@ -3168,8 +3168,8 @@ HTMLContentSink::ProcessBASETag(const nsIParserNode& aNode) // Create content object nsAutoString tag("BASE"); - nsIHTMLContent* element = nsnull; - result = NS_CreateHTMLElement(&element, tag); + nsCOMPtr element; + result = NS_CreateHTMLElement(getter_AddRefs(element), tag); if (NS_SUCCEEDED(result)) { element->SetContentID(mContentIDCounter++); diff --git a/layout/html/document/src/nsHTMLContentSink.cpp b/layout/html/document/src/nsHTMLContentSink.cpp index 17a5db06c18..3006c839edd 100644 --- a/layout/html/document/src/nsHTMLContentSink.cpp +++ b/layout/html/document/src/nsHTMLContentSink.cpp @@ -3168,8 +3168,8 @@ HTMLContentSink::ProcessBASETag(const nsIParserNode& aNode) // Create content object nsAutoString tag("BASE"); - nsIHTMLContent* element = nsnull; - result = NS_CreateHTMLElement(&element, tag); + nsCOMPtr element; + result = NS_CreateHTMLElement(getter_AddRefs(element), tag); if (NS_SUCCEEDED(result)) { element->SetContentID(mContentIDCounter++);