diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2012-02-08 17:06:25 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-08 08:25:51 +0100 |
commit | 405d051f1f3ab749ffca05e90b4e90b29f14282f (patch) | |
tree | 0a1c488beb94d73e0513282786167ffb24d8b5b5 | |
parent | 68045db7c9025f5d0fa82e33a71df4fe48754fe6 (diff) | |
download | qtsensors-405d051f1f3ab749ffca05e90b4e90b29f14282f.tar.gz |
It's not safe to delete QFactoryLoader
If we delete QFactoryLoader and there's a QSensor[Backend] still being
held, we will explode. So either we do a refcount-type check and fatal
or we just don't delete QFactoryLoader. Since the process is about to
end anyway, don't delete QFactoryLoader.
Change-Id: Ie21b28075f4f720bb842e32296b68ec615ed1d6a
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
-rw-r--r-- | src/sensors/qsensorpluginloader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sensors/qsensorpluginloader.cpp b/src/sensors/qsensorpluginloader.cpp index 4047828..25fce3e 100644 --- a/src/sensors/qsensorpluginloader.cpp +++ b/src/sensors/qsensorpluginloader.cpp @@ -58,7 +58,7 @@ QSensorPluginLoader::QSensorPluginLoader() QSensorPluginLoader::~QSensorPluginLoader() { - delete m_loader; + //delete m_loader; } QList<QObject*> QSensorPluginLoader::plugins() const |