aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4sequenceobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4sequenceobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4sequenceobject.cpp4
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();
}