diff options
Diffstat (limited to 'WebCore/html/HTMLParagraphElement.cpp')
-rw-r--r-- | WebCore/html/HTMLParagraphElement.cpp | 2 |
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) |