aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-04-28 19:15:25 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-06-17 07:40:03 +0000
commita914b186671090f1ec2ac80fa14b4aef19e8d563 (patch)
tree08ddf9049c59cd6c12a4e2c5eeeb86eb3a46d75c /src/qml/jsruntime/qv4script_p.h
parent668e4b739a92dd9dbec2d4df76fe9197506c25d9 (diff)
Store rootcontext in a GC safe way
Change-Id: If81d638c0ccd2b34df918ae5055e309f4eae031f Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4script_p.h')
-rw-r--r--src/qml/jsruntime/qv4script_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4script_p.h b/src/qml/jsruntime/qv4script_p.h
index 998a2cff72..d2d2b89d16 100644
--- a/src/qml/jsruntime/qv4script_p.h
+++ b/src/qml/jsruntime/qv4script_p.h
@@ -115,7 +115,7 @@ struct Q_QML_EXPORT Script {
, vmFunction(0), parseAsBinding(false) {}
Script(ExecutionEngine *engine, Object *qml, const QString &sourceCode, const QString &source = QString(), int line = 1, int column = 0)
: sourceFile(source), line(line), column(column), sourceCode(sourceCode)
- , scope(engine->rootContext()), strictMode(false), inheritContext(true), parsed(false)
+ , scope(engine->rootContext()->d()), strictMode(false), inheritContext(true), parsed(false)
, qml(engine, qml), vmFunction(0), parseAsBinding(true) {}
Script(ExecutionEngine *engine, Object *qml, CompiledData::CompilationUnit *compilationUnit);
~Script();