From 6dda515f298df2c205747778514a4117003a37c2 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 5 May 2019 12:58:11 +0000 Subject: [PATCH] Move Desktopdaemon object from heap to stack --- daemon/kdeconnectd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index b063cec0f..d4fe15ea9 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -99,8 +99,7 @@ int main(int argc, char* argv[]) KDBusService dbusService(KDBusService::Unique); - Daemon* daemon = new DesktopDaemon; - QObject::connect(daemon, SIGNAL(destroyed(QObject*)), &app, SLOT(quit())); + DesktopDaemon daemon; return app.exec(); }