aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-08-21 14:55:53 +0200
committerLars Knoll <lars.knoll@theqtcompany.com>2015-09-15 07:37:08 +0000
commit7dab89a65ef859ef1982d5b882cb74a0a34e53a9 (patch)
tree496f65fb6c0c6d158facca02bf83944269874a77 /src/qml/memory
parentb5902bd43a3b45a25e3b960b20c3c1ecb41073fe (diff)
Cleanup the ExecutionContextSaver
Always operate on the current context (as that's what we do in practice anyway). Change-Id: I4171207a7a86e69aa685754956c0764ac6e152a7 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/memory')
-rw-r--r--src/qml/memory/qv4mm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/memory/qv4mm.cpp b/src/qml/memory/qv4mm.cpp
index b880c9c8d5..5a7953679b 100644
--- a/src/qml/memory/qv4mm.cpp
+++ b/src/qml/memory/qv4mm.cpp
@@ -483,7 +483,7 @@ void MemoryManager::sweep(bool lastSweep)
// some execution contexts are allocated on the stack, make sure we clear their markBit as well
if (!lastSweep) {
- Heap::ExecutionContext *ctx = engine()->current;
+ Heap::ExecutionContext *ctx = engine()->currentContext();
while (ctx) {
ctx->clearMarkBit();
ctx = ctx->parent;