Wayland client, cleanup on exit

Simon Ser contact at emersion.fr
Tue Apr 4 11:28:36 UTC 2023


On Tuesday, April 4th, 2023 at 13:26, Guillermo Rodriguez <guillerodriguez.dev at gmail.com> wrote:

> Out of curiosity, for objects that are only released when a client
> disconnects (such as wl_registry), how does the Wayland server know
> how to release this if the client does not disconnect explicitly. in
> other words how is the resource leak on the server side avoided if the
> client just exits and the OS cleans up?

libwayland-server notices that the socket is disconnected and cleans up
all Wayland objects belonging to it.


More information about the wayland-devel mailing list