diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-12 01:19:45 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-12 01:19:45 +0200 |
commit | 3ea878b76e7cf63caf9cddaaabe2faca053d9085 (patch) | |
tree | 3d54d0664fe73de8145ee57af890a818ec5b7e5b /backend | |
parent | 8427749dd06b52bd8e53539f264a784beca9bb6f (diff) |
wayland backend: free seatName
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/backend.c | 1 | ||||
-rw-r--r-- | backend/wayland/wl_seat.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c index 1a156802..ddad1418 100644 --- a/backend/wayland/backend.c +++ b/backend/wayland/backend.c @@ -85,6 +85,7 @@ static void wlr_wl_backend_destroy(struct wlr_backend_state *state) { list_free(state->devices); list_free(state->outputs); + free(state->seatName); wlr_egl_free(&state->egl); if (state->seat) wl_seat_destroy(state->seat); diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index 88784828..7fb63cbe 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -258,6 +258,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *wl_seat, static void seat_handle_name(void *data, struct wl_seat *wl_seat, const char *name) { struct wlr_backend_state *state = data; assert(state->seat == wl_seat); + // Do we need to check if seatName was previously set for name change? state->seatName = strdup(name); } |