Wayland client, cleanup on exit

Simon Ser contact at emersion.fr
Tue Apr 4 10:33:31 UTC 2023


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

> Is it necessary to explicitly clean up and release any resources
> before exit in a Wayland client? Does that happen automatically if
> the process simply exits (in the same way that other resources such
> as memory or fds are automatically released) ?

If you don't explicitly cleanup resources allocated by libwayland, it's
fine: the process won't leak any. IOW, resources allocated in a Wayland
client are cleaned up by the OS as usual.

Some people still prefer to explicitly clean up, e.g. to use tools like


More information about the wayland-devel mailing list