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

Plugin destructors not being called

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.2
    • Core: Plugins
    • None
    • Fedora GNU/Linux

      Destructor for the "root components" of plugins are only called if we explicit unload(), but documentation of QPluginLoader and QPluginLoader::instance() suggests that they would be automatically deleted:

      "Once loaded, plugins remain in memory until all instances of QPluginLoader has been unloaded, or until the application terminates."

      "When the library is finally unloaded, the root component will automatically be deleted."

      Also, destructor of "root component" of static plugins are never called as well.

      The attached file has a small example, where I've expected both destructor to be called, but no one is.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            cmarcelo Caio Marcelo de Oliveira Filho
            Votes:
            14 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes