diff options
author | Daiwei Li <daiweili@suitabletech.com> | 2014-03-25 01:07:46 -0700 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2014-06-30 11:10:27 +0200 |
commit | 8e1b88e457cbee0000d5956f2ff5a98724c2d3e4 (patch) | |
tree | 6c45d88863a13d29a413d53f69fd9bb9138ec66c /tools/qmlplugindump | |
parent | 692c0d3526b4bd5e5b17e17b4a6547046c2bfcbc (diff) |
Delete objects created by qmlplugindump
This helps plugin objects to shut down cleanly
Change-Id: I167f63220a35a7428f50715a4cb9072320ef1c87
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'tools/qmlplugindump')
-rw-r--r-- | tools/qmlplugindump/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index bc55c40434..192c85513f 100644 --- a/tools/qmlplugindump/main.cpp +++ b/tools/qmlplugindump/main.cpp @@ -306,6 +306,7 @@ QSet<const QMetaObject *> collectReachableMetaObjects(QQmlEngine *engine, std::cerr << "Got " << qPrintable( tyName ) << " (" << qPrintable( QString::fromUtf8(ty->typeName()) ) << ")" << std::endl; collectReachableMetaObjects(object, &metas); + object->deleteLater(); } else { std::cerr << "Could not create" << qPrintable(tyName) << std::endl; } |