diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-01-12 00:27:33 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-01-12 00:27:33 (GMT) |
commit | c0c2352a287348469617811985d773ec4c3d1875 (patch) | |
tree | c5c2dd49a062a8ea2a04c8eb9815ed83185b0055 /src/declarative/qml/qmlcompiler_p.h | |
parent | 20b9cfdfa2147627dc3ca5cf514402d08ff8d832 (diff) | |
download | Qt-c0c2352a287348469617811985d773ec4c3d1875.zip Qt-c0c2352a287348469617811985d773ec4c3d1875.tar.gz Qt-c0c2352a287348469617811985d773ec4c3d1875.tar.bz2 |
Cached programs and closures must be destroyed at shutdown
Diffstat (limited to 'src/declarative/qml/qmlcompiler_p.h')
-rw-r--r-- | src/declarative/qml/qmlcompiler_p.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlcompiler_p.h b/src/declarative/qml/qmlcompiler_p.h index c0e50e4..732fbad 100644 --- a/src/declarative/qml/qmlcompiler_p.h +++ b/src/declarative/qml/qmlcompiler_p.h @@ -74,10 +74,10 @@ class QmlComponent; class QmlContext; class QScriptProgram; -class Q_AUTOTEST_EXPORT QmlCompiledData : public QmlRefCount +class Q_AUTOTEST_EXPORT QmlCompiledData : public QmlRefCount, public QmlCleanup { public: - QmlCompiledData(); + QmlCompiledData(QmlEngine *engine); virtual ~QmlCompiledData(); QString name; @@ -123,6 +123,10 @@ public: QList<QUrl> urls; void dumpInstructions(); + +protected: + virtual void clear(); // From QmlCleanup + private: void dump(QmlInstruction *, int idx = -1); QmlCompiledData(const QmlCompiledData &other); |