wlroots/xwayland/selection
Wang Yu d834de6167 xwayland: fix memory leak on pipe() failure
When pipe() fails in xwm_selection_send_data(), the function
returns without cleaning up the allocated transfer structure
and initialized wl_array. This causes a memory leak.

Add wl_array_release() and free() to clean up resources when
pipe() fails.

Signed-off-by: Wang Yu <wangyu@uniontech.com>
(cherry picked from commit a55b85e2e1)
2026-03-06 09:48:36 -05:00
..
dnd.c xwayland/selection/dnd: always send finished event 2025-03-23 15:17:10 +01:00
incoming.c xwayland/xwm: implement somewhat asynchronous request flushing 2024-10-07 21:51:15 +03:00
outgoing.c xwayland: fix memory leak on pipe() failure 2026-03-06 09:48:36 -05:00
selection.c xwayland/xwm: implement somewhat asynchronous request flushing 2024-10-07 21:51:15 +03:00