diff options
author | Lars Knoll <[email protected]> | 2014-03-31 15:48:02 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-04-04 17:26:20 +0200 |
commit | 8e556778c8324c61ddf5842e457c873c1b5aac02 (patch) | |
tree | ca9dd1cd85510fdbd01221005cb0c096a844a762 /src/qml/jsruntime/qv4functionobject.cpp | |
parent | b02eeeee586abe343b8866385c1327ac009b3ef0 (diff) |
Garbage collect member data
Move the allocated member data into the garbage collected
area, so that we can avoid using malloc/free for it.
Change-Id: I20625efa67ecd60238568742b74854b0c8cb2e3e
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index 00c13a1a35..8e943fa6ef 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -167,7 +167,8 @@ ReturnedValue FunctionObject::call(Managed *, CallData *) void FunctionObject::markObjects(Managed *that, ExecutionEngine *e) { FunctionObject *o = static_cast<FunctionObject *>(that); - o->scope->mark(e); + if (o->scope) + o->scope->mark(e); Object::markObjects(that, e); } |