diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2019-05-17 12:42:59 +0200 |
---|---|---|
committer | Bernd Weimer <bernd.weimer@pelagicore.com> | 2019-08-01 13:21:30 +0200 |
commit | 35046bc0913f7eda19716348eb1284351a4443ff (patch) | |
tree | 8e82ad51435adae768ecddfc984a3c36255f2bc8 | |
parent | c5db47a7b53c5800a3af6a6f2f79925ba3a71c57 (diff) |
Destroy QDBusServer instance when an application quits
Cherry-picked from dev: 742f39b
Change-Id: Id4e38169185e6a99a38294d7c5146efcf5db4716
Task-number: AUTOSUITE-951
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
-rw-r--r-- | src/manager-lib/nativeruntime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager-lib/nativeruntime.cpp b/src/manager-lib/nativeruntime.cpp index c5786ffd..ad7d5231 100644 --- a/src/manager-lib/nativeruntime.cpp +++ b/src/manager-lib/nativeruntime.cpp @@ -106,7 +106,7 @@ NativeRuntime::NativeRuntime(AbstractContainer *container, Application *app, Nat , m_startedViaLauncher(manager->identifier() != qL1S("native")) { QString dbusAddress = QUuid::createUuid().toString().mid(1,36); - m_applicationInterfaceServer = new QDBusServer(qSL("unix:path=/tmp/dbus-qtam-") + dbusAddress); + m_applicationInterfaceServer = new QDBusServer(qSL("unix:path=/tmp/dbus-qtam-") + dbusAddress, this); connect(m_applicationInterfaceServer, &QDBusServer::newConnection, this, [this](const QDBusConnection &connection) { |