diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-11-12 10:14:51 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-11-02 17:58:48 +0000 |
commit | ca4d93d85ee446c5e30ec8e7814651e45cbf1218 (patch) | |
tree | 45880c4703f36bb1b2c4322dbb6663ae12e5c6ee /tests/manual | |
parent | 5f6c0418fe911b7afe34153b16b3f00839354afd (diff) |
Stop unloading plugins in QPluginLoader and QFactoryLoader
QPluginLoader hasn't unloaded in its destructor since Qt 5.0, but we
missed the equivalent code in QFactoryLoader (which bypasses
QPluginLoader). Besides, QPluginLoader::unload() was still doing
unloading, which it won't anymore.
Not unloading plugins is Qt's policy, as decided during the 5.0
development process and reaffirmed now in 5.6. This is due to static
data in plugins leaking out and remaining in use past the unloading of
the plugin, causing crashes.
This does not affect QLibrary and QLibrary::unload(). Those are meant
for non-Qt loadable modules, so unloading them may be safe.
Task-number: QTBUG-49061
Discussed-on: http://lists.qt-project.org/pipermail/development/2015-November/023681.html
Change-Id: I461e9fc7199748faa187ffff1416070f138df8db
(cherry picked from commit 494376f980e96339b6f1eff7c41336ca4d853065)
Discussed-again-on: http://lists.qt-project.org/pipermail/development/2016-October/027476.html
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/manual')
0 files changed, 0 insertions, 0 deletions