diff options
Diffstat (limited to 'WebCore/html/ValidityState.h')
-rw-r--r-- | WebCore/html/ValidityState.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/html/ValidityState.h b/WebCore/html/ValidityState.h index 04f11a1..eecb9be 100644 --- a/WebCore/html/ValidityState.h +++ b/WebCore/html/ValidityState.h @@ -33,7 +33,7 @@ class ValidityState : public Noncopyable { public: static PassOwnPtr<ValidityState> create(HTMLFormControlElement* control) { - return new ValidityState(control); + return adoptPtr(new ValidityState(control)); } void ref() { m_control->ref(); } |