diff options
Diffstat (limited to 'JavaScriptCore/runtime/RegExpObject.cpp')
-rw-r--r-- | JavaScriptCore/runtime/RegExpObject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/JavaScriptCore/runtime/RegExpObject.cpp b/JavaScriptCore/runtime/RegExpObject.cpp index 4824944..0f2c1e1 100644 --- a/JavaScriptCore/runtime/RegExpObject.cpp +++ b/JavaScriptCore/runtime/RegExpObject.cpp @@ -29,6 +29,7 @@ #include "Lookup.h" #include "RegExpConstructor.h" #include "RegExpPrototype.h" +#include <wtf/PassOwnPtr.h> namespace JSC { @@ -61,7 +62,7 @@ const ClassInfo RegExpObject::info = { "RegExp", 0, 0, ExecState::regExpTable }; RegExpObject::RegExpObject(JSGlobalObject* globalObject, NonNullPassRefPtr<Structure> structure, NonNullPassRefPtr<RegExp> regExp) : JSObjectWithGlobalObject(globalObject, structure) - , d(new RegExpObjectData(regExp, 0)) + , d(adoptPtr(new RegExpObjectData(regExp, 0))) { } |