Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49865

Singleton objects are not destroyed on exit

XMLWordPrintable

      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.

        For Gerrit Dashboard: QTBUG-49865
        # Subject Branch Project Status CR V

            taipan BogDan Vatra
            jianliang79 liang jian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes