summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer/connman
diff options
context:
space:
mode:
authorJakub Adam <jakub.adam@jollamobile.com>2014-06-04 08:19:18 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-05 11:24:49 +0200
commit61449e8b59a8b9b2caaba099554ebf6fff30b92a (patch)
treea001e1466237ee5af0228f8dda707f07a315c0f0 /src/plugins/bearer/connman
parent4a6df5ec953018513b5b2c6724ba79b928d9260d (diff)
Assign a parent to QConnmanServiceInterface instances
Makes sure they are properly deleted. Change-Id: I60a64c43456308ad9b6d8d0e3e8cbef8c2afb43e Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/plugins/bearer/connman')
-rw-r--r--src/plugins/bearer/connman/qconnmanengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/bearer/connman/qconnmanengine.cpp b/src/plugins/bearer/connman/qconnmanengine.cpp
index 5e3aaae072..adefb7504e 100644
--- a/src/plugins/bearer/connman/qconnmanengine.cpp
+++ b/src/plugins/bearer/connman/qconnmanengine.cpp
@@ -513,7 +513,7 @@ void QConnmanEngine::addServiceConfiguration(const QString &servicePath)
{
QMutexLocker locker(&mutex);
if (!connmanServiceInterfaces.contains(servicePath)) {
- QConnmanServiceInterface *serv = new QConnmanServiceInterface(servicePath);
+ QConnmanServiceInterface *serv = new QConnmanServiceInterface(servicePath, this);
connmanServiceInterfaces.insert(serv->path(),serv);
}