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
This commit is contained in:
parent
f96f4a9fd1
commit
8680586dbd
1 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,10 @@ ApplicationWayland::ApplicationWayland(int &argc, char **argv)
|
|||
|
||||
ApplicationWayland::~ApplicationWayland()
|
||||
{
|
||||
if (!waylandServer()) {
|
||||
return;
|
||||
}
|
||||
|
||||
waylandServer()->backend()->setOutputsEnabled(false);
|
||||
destroyWorkspace();
|
||||
waylandServer()->dispatch();
|
||||
|
|
Loading…
Reference in a new issue