summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLParagraphElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLParagraphElement.cpp')
-rw-r--r--WebCore/html/HTMLParagraphElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/html/HTMLParagraphElement.cpp b/WebCore/html/HTMLParagraphElement.cpp
index fd04a30..4afa9f8 100644
--- a/WebCore/html/HTMLParagraphElement.cpp
+++ b/WebCore/html/HTMLParagraphElement.cpp
@@ -41,7 +41,7 @@ inline HTMLParagraphElement::HTMLParagraphElement(const QualifiedName& tagName,
PassRefPtr<HTMLParagraphElement> HTMLParagraphElement::create(const QualifiedName& tagName, Document* document)
{
- return new HTMLParagraphElement(tagName, document);
+ return adoptRef(new HTMLParagraphElement(tagName, document));
}
bool HTMLParagraphElement::checkDTD(const Node* newChild)