From 5f3ef18bf8c3e0e3ba1c80bcdeaece46cbb45c06 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 14 Aug 2013 10:17:37 +0200 Subject: Begin using the compiled data structures for runtime strings Change-Id: Idbf278a96624bf101df35de40577b38e593f22be Reviewed-by: Lars Knoll --- src/qml/jsruntime/qv4function.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4function.cpp') 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() -- cgit v1.2.3