[server] Only send surface leave if resources are still valid
If a resource is null, because e.g. the surface got already destroyed, wayland will create an error while marshalling arguments causing the connected client to in worst case abort.
Please register or sign in to comment