Move Desktopdaemon object from heap to stack

This commit is contained in:
Nicolas Fella 2019-05-05 12:58:11 +00:00
parent 92a2da05e6
commit 6dda515f29

View file

@ -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();
}