diff options
Diffstat (limited to 'WebCore/html/HTMLDivElement.cpp')
-rw-r--r-- | WebCore/html/HTMLDivElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/html/HTMLDivElement.cpp b/WebCore/html/HTMLDivElement.cpp index 72f532f..f35b25b 100644 --- a/WebCore/html/HTMLDivElement.cpp +++ b/WebCore/html/HTMLDivElement.cpp @@ -40,12 +40,12 @@ HTMLDivElement::HTMLDivElement(const QualifiedName& tagName, Document* document) PassRefPtr<HTMLDivElement> HTMLDivElement::create(Document* document) { - return new HTMLDivElement(divTag, document); + return adoptRef(new HTMLDivElement(divTag, document)); } PassRefPtr<HTMLDivElement> HTMLDivElement::create(const QualifiedName& tagName, Document* document) { - return new HTMLDivElement(tagName, document); + return adoptRef(new HTMLDivElement(tagName, document)); } bool HTMLDivElement::mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const |