wayland.shell: Fix a leak of surfaces
This commit is contained in:
parent
6d83dff0ee
commit
5c8e362a9e
|
@ -533,7 +533,6 @@ where
|
|||
// the wl_surface is destroyed, this means the client is not
|
||||
// trying to change the role but it's a cleanup (possibly a
|
||||
// disconnecting client), ignore the protocol check.
|
||||
return;
|
||||
} else {
|
||||
data.shell_data
|
||||
.compositor_token
|
||||
|
@ -622,7 +621,6 @@ where
|
|||
// the wl_surface is destroyed, this means the client is not
|
||||
// trying to change the role but it's a cleanup (possibly a
|
||||
// disconnecting client), ignore the protocol check.
|
||||
return;
|
||||
} else {
|
||||
data.shell_data
|
||||
.compositor_token
|
||||
|
|
|
@ -547,7 +547,6 @@ where
|
|||
// the wl_surface is destroyed, this means the client is not
|
||||
// trying to change the role but it's a cleanup (possibly a
|
||||
// disconnecting client), ignore the protocol check.
|
||||
return;
|
||||
} else {
|
||||
data.shell_data
|
||||
.compositor_token
|
||||
|
@ -639,7 +638,6 @@ where
|
|||
// the wl_surface is destroyed, this means the client is not
|
||||
// trying to change the role but it's a cleanup (possibly a
|
||||
// disconnecting client), ignore the protocol check.
|
||||
return;
|
||||
} else {
|
||||
data.shell_data
|
||||
.compositor_token
|
||||
|
|
Loading…
Reference in New Issue