mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 04:40:07 +01:00
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> |
||
|---|---|---|
| .. | ||
| dnd.c | ||
| launcher.c | ||
| meson.build | ||
| selection.c | ||
| window-manager.c | ||
| xwayland-internal-interface.h | ||
| xwayland.h | ||