Move Desktopdaemon object from heap to stack
This commit is contained in:
parent
92a2da05e6
commit
6dda515f29
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue