Initialize DBus object pointers with nullptr

This should fix a crash when the daemon is terminated before it can establish
connection and initialize the objects.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/6/head
Mavridis Philippe 2 months ago
parent 21fbf1ce2b
commit acdd7db26e
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -34,7 +34,12 @@
PortalDaemon::PortalDaemon() PortalDaemon::PortalDaemon()
: KUniqueApplication(), : KUniqueApplication(),
m_retryCount(0) m_retryCount(0),
d_root(nullptr),
d_org(nullptr),
d_freedesktop(nullptr),
d_portal(nullptr),
d_desktop(nullptr)
{ {
connectDBus(); connectDBus();
} }

Loading…
Cancel
Save