Add a check for waylandServer in the dtor before using it

Make sure the waylandServer ptr exists before referencing it
in the dtor.

REVIEW: 126190
master
Rohan Garg 9 years ago
parent f96f4a9fd1
commit 8680586dbd

@ -75,6 +75,10 @@ ApplicationWayland::ApplicationWayland(int &argc, char **argv)
ApplicationWayland::~ApplicationWayland()
{
if (!waylandServer()) {
return;
}
waylandServer()->backend()->setOutputsEnabled(false);
destroyWorkspace();
waylandServer()->dispatch();

Loading…
Cancel
Save