diff options
Diffstat (limited to 'src/qml/jsruntime/qv4sequenceobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4sequenceobject.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4sequenceobject.cpp b/src/qml/jsruntime/qv4sequenceobject.cpp index c535dbea09..05f51beecf 100644 --- a/src/qml/jsruntime/qv4sequenceobject.cpp +++ b/src/qml/jsruntime/qv4sequenceobject.cpp @@ -175,6 +175,8 @@ public: { type = Type_QmlSequence; vtbl = &static_vtbl; + QV4::Scope scope(engine); + QV4::ScopedObject protectThis(scope, this); init(); } @@ -186,6 +188,8 @@ public: { type = Type_QmlSequence; vtbl = &static_vtbl; + QV4::Scope scope(engine); + QV4::ScopedObject protectThis(scope, this); loadReference(); init(); } |