summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2011-10-31 15:43:30 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-31 07:30:14 +0100
commit76702b40d4a505d71ddb8f8ebea71706a4e8d412 (patch)
tree3c1b86c62d9aadffc31581d503d0e77eb4272a45 /src
parent94b1e4f01c58fd9ee4a9af537b8c46c3ab324dff (diff)
Do not unload plugins.
It turns out that unloading Qt plugins breaks as soon as you get dependencies on your code. This is particularly obvious when you use Q_GLOBAL_STATIC because the destructors fire in an arbitrary order. Change-Id: If4fc9a0ca6a2c914c34559b7af84dc0fdb0e76e7 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/sensors/qsensorpluginloader.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/sensors/qsensorpluginloader.cpp b/src/sensors/qsensorpluginloader.cpp
index 09d7ce48..66012f49 100644
--- a/src/sensors/qsensorpluginloader.cpp
+++ b/src/sensors/qsensorpluginloader.cpp
@@ -56,11 +56,6 @@ QSensorPluginLoader::QSensorPluginLoader()
QSensorPluginLoader::~QSensorPluginLoader()
{
- Q_FOREACH (QPluginLoader *loader, m_loaders) {
- bool ok = loader->unload();
- if (!ok) qWarning() << "Cannot unload" << loader->fileName();
- delete loader;
- }
}
QList<QObject*> QSensorPluginLoader::plugins() const