aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4function.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-08-14 10:17:37 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-08-15 09:08:39 +0200
commit5f3ef18bf8c3e0e3ba1c80bcdeaece46cbb45c06 (patch)
tree645b8834e773e408bdb07b33dc8e7733335bf1e3 /src/qml/jsruntime/qv4function.cpp
parent131964a3b5ac0cb6de5f1d306035003751da907a (diff)
Begin using the compiled data structures for runtime strings
Change-Id: Idbf278a96624bf101df35de40577b38e593f22be Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4function.cpp')
-rw-r--r--src/qml/jsruntime/qv4function.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4function.cpp b/src/qml/jsruntime/qv4function.cpp
index 8c303a21ab..6e1645c068 100644
--- a/src/qml/jsruntime/qv4function.cpp
+++ b/src/qml/jsruntime/qv4function.cpp
@@ -54,13 +54,15 @@ using namespace QV4;
Function::~Function()
{
engine->functions.remove(engine->functions.indexOf(this));
- UnwindHelper::deregisterFunction(this);
+ UnwindHelper::deregisterFunction(this); // ### move to masm compilation unit
Q_ASSERT(!refCount);
delete[] codeData;
delete[] lookups;
foreach (Function *f, nestedFunctions)
f->deref();
+ if (compilationUnit)
+ compilationUnit->deref();
}
void Function::mark()