Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0 Alpha
-
None
-
Windows 10 x64
Description
Singleton objects are not destroyed on exit, such as QQuickControlSettings object.
This issue was introduced by 6fc1e0fc36f0732e79375a0e105816eb17893962, with this patch QQmlType::SingletonInstanceInfo::destroy() will run the following code:
QObject *o = qobjectApis.take(e); if (o) { QQmlData *ddata = QQmlData::get(o, false); if (ddata && ddata->indestructible) return; delete o; }
On exit, ddata->indestructible is true and we don't destroy the Singleton object and we will never have a chance to do it.
Attachments
For Gerrit Dashboard: QTBUG-49865 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
143581,5 | Fix don't delete singletons objects owned by C++ | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |