xwayland: fix double free wlr_xwayland_shell_v1

This commit is contained in:
JiDe Zhang 2023-09-08 21:36:56 +08:00 committed by Simon Ser
parent e58c7bb792
commit ca19014af0
4 changed files with 15 additions and 0 deletions

View file

@ -21,6 +21,7 @@ struct wlr_xwayland_shell_v1 {
struct wl_global *global;
struct {
struct wl_signal destroy;
struct wl_signal new_surface; // struct wlr_xwayland_surface_v1
} events;

View file

@ -49,6 +49,7 @@ struct wlr_xwayland {
struct wl_listener server_ready;
struct wl_listener server_destroy;
struct wl_listener seat_destroy;
struct wl_listener shell_destroy;
void *data;
};