diff options
| author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-16 17:25:58 +0200 |
|---|---|---|
| committer | Lars Knoll <lars.knoll@digia.com> | 2013-08-16 19:18:48 +0200 |
| commit | 0f0e7443aea0d9a203b380bec708c485a01450e0 (patch) | |
| tree | c34a687f99964d9d97c535e6c3cf1fdc232aaebf /src/qml/jsruntime/qv4script.cpp | |
| parent | bb8d91829c12b7742205eb96a0e8fbcc164c5e91 (diff) | |
Refcount the compilation unit and remove refcount from runtime function
Change-Id: Iaa2f96a6814f1b39589ffcfe3c84e3c229e25f1f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
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 70ab3d4d1d..2997604948 100644 --- a/src/qml/jsruntime/qv4script.cpp +++ b/src/qml/jsruntime/qv4script.cpp @@ -67,7 +67,7 @@ struct QmlBindingWrapper : FunctionObject { vtbl = &static_vtbl; function = f; - function->ref(); + function->compilationUnit->ref(); usesArgumentsObject = function->usesArgumentsObject(); needsActivation = function->needsActivation(); defineReadonlyProperty(scope->engine->id_length, Value::fromInt32(1)); |
