diff options
Diffstat (limited to 'WebCore/dom/DocumentType.h')
-rw-r--r-- | WebCore/dom/DocumentType.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/dom/DocumentType.h b/WebCore/dom/DocumentType.h index 9fd3c6e..4f89d01 100644 --- a/WebCore/dom/DocumentType.h +++ b/WebCore/dom/DocumentType.h @@ -2,7 +2,7 @@ * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2001 Dirk Mueller (mueller@kde.org) - * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2004, 2005, 2006, 2008, 2009 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -34,7 +34,7 @@ class DocumentType : public Node { public: static PassRefPtr<DocumentType> create(Document* document, const String& name, const String& publicId, const String& systemId) { - return new DocumentType(document, name, publicId, systemId); + return adoptRef(new DocumentType(document, name, publicId, systemId)); } NamedNodeMap* entities() const { return m_entities.get(); } |