weston/xwayland
Marius Vlad 582ae5385b xwayland: Fix some memory leaks on compositor shutdown path
While exiting, on the shutdown compositor path, for instance if we don't have
permission access to create a lock file we will end up reporting some memory
leaks/use-after-free.

This patch addresses of all them:

- api->listen returns NULL and we do not property free wet_xwayland
  struct
- we don't remove the signal handler causing a use-after-free (signal
  handler gets called by the main object has been freed)
- we don't remove/destroy the debug scope causing a mem-leak
- on the same path check for valid event source to avoid deref invalid
  pointers.

Add a simple wrapper which we can call in other call sites.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
2025-12-15 11:35:04 +02:00
..
dnd.c shared: extract hash table implementation from xwayland 2023-03-03 08:08:46 +00:00
launcher.c xwayland: Fix some memory leaks on compositor shutdown path 2025-12-15 11:35:04 +02:00
meson.build xwm: Add support for xwayland_shell_v1 2023-03-03 08:21:24 +00:00
selection.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
window-manager.c xwm: Add command line option to disable window decor 2025-08-28 14:35:30 -05:00
xwayland-internal-interface.h libweston/desktop: Update my Copyright 2024-02-11 19:07:39 +01:00
xwayland.h xwayland: Create a dummy no_focus_window to use for non-X window focus 2025-05-23 18:07:02 +02:00