diff options
Diffstat (limited to 'src/qml/jsruntime/qv4function.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4function.cpp | 4 |
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() |