summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlworkerscript.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-08 05:11:23 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-08 05:11:23 (GMT)
commit3e1b7110c1161b740c32ed0ee390f7030e8208ed (patch)
tree3fe04069fa8bb1894283111ce9a9521b9636e6e2 /src/declarative/qml/qmlworkerscript.cpp
parentad2a9bd8f0c0b57e1e40f5f93af21c018ceac86e (diff)
downloadQt-3e1b7110c1161b740c32ed0ee390f7030e8208ed.zip
Qt-3e1b7110c1161b740c32ed0ee390f7030e8208ed.tar.gz
Qt-3e1b7110c1161b740c32ed0ee390f7030e8208ed.tar.bz2
Fix leaks.
Diffstat (limited to 'src/declarative/qml/qmlworkerscript.cpp')
-rw-r--r--src/declarative/qml/qmlworkerscript.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlworkerscript.cpp b/src/declarative/qml/qmlworkerscript.cpp
index 5c281bb..a0d6ef0 100644
--- a/src/declarative/qml/qmlworkerscript.cpp
+++ b/src/declarative/qml/qmlworkerscript.cpp
@@ -389,6 +389,7 @@ QmlWorkerScriptEngine::QmlWorkerScriptEngine(QObject *parent)
QmlWorkerScriptEngine::~QmlWorkerScriptEngine()
{
+ qDeleteAll(d->workers);
delete d; d = 0;
}