diff options
author | Lars Knoll <[email protected]> | 2015-04-28 19:15:25 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2015-06-17 07:40:03 +0000 |
commit | a914b186671090f1ec2ac80fa14b4aef19e8d563 (patch) | |
tree | 08ddf9049c59cd6c12a4e2c5eeeb86eb3a46d75c /src/qml/jsruntime/qv4script.cpp | |
parent | 668e4b739a92dd9dbec2d4df76fe9197506c25d9 (diff) |
Store rootcontext in a GC safe way
Change-Id: If81d638c0ccd2b34df918ae5055e309f4eae031f
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp index c54bcefd20..aec5d73861 100644 --- a/src/qml/jsruntime/qv4script.cpp +++ b/src/qml/jsruntime/qv4script.cpp @@ -188,7 +188,7 @@ Heap::FunctionObject *QmlBindingWrapper::createQmlCallableForFunction(QQmlContex } Script::Script(ExecutionEngine *v4, Object *qml, CompiledData::CompilationUnit *compilationUnit) - : line(0), column(0), scope(v4->rootContext()), strictMode(false), inheritContext(true), parsed(false) + : line(0), column(0), scope(v4->rootContext()->d()), strictMode(false), inheritContext(true), parsed(false) , qml(v4, qml), vmFunction(0), parseAsBinding(true) { parsed = true; |