From 5c8e362a9e194b5659ea2475a084d6ca8be5b4ed Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Wed, 28 Nov 2018 23:34:30 +0100 Subject: [PATCH] wayland.shell: Fix a leak of surfaces --- src/wayland/shell/xdg/xdg_handlers.rs | 2 -- src/wayland/shell/xdg/zxdgv6_handlers.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/wayland/shell/xdg/xdg_handlers.rs b/src/wayland/shell/xdg/xdg_handlers.rs index 4264509..d5dc724 100644 --- a/src/wayland/shell/xdg/xdg_handlers.rs +++ b/src/wayland/shell/xdg/xdg_handlers.rs @@ -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 diff --git a/src/wayland/shell/xdg/zxdgv6_handlers.rs b/src/wayland/shell/xdg/zxdgv6_handlers.rs index 5bf5f62..1621146 100644 --- a/src/wayland/shell/xdg/zxdgv6_handlers.rs +++ b/src/wayland/shell/xdg/zxdgv6_handlers.rs @@ -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