From 405d051f1f3ab749ffca05e90b4e90b29f14282f Mon Sep 17 00:00:00 2001 From: Lincoln Ramsay Date: Wed, 8 Feb 2012 17:06:25 +1000 Subject: 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 --- src/sensors/qsensorpluginloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 QSensorPluginLoader::plugins() const -- cgit v1.2.1