mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
server: on exit, destroy backends first
This fixes a UAF caused by trying to update the xcursor in a output destroy handler, in turn caused by destroying the backend. Fixes: #2539
This commit is contained in:
parent
950337b895
commit
897799da5a
1 changed files with 1 additions and 1 deletions
|
|
@ -757,9 +757,9 @@ server_finish(struct server *server)
|
|||
wl_event_source_remove(sighup_source);
|
||||
}
|
||||
wl_display_destroy_clients(server->wl_display);
|
||||
wlr_backend_destroy(server->backend);
|
||||
wlr_allocator_destroy(server->allocator);
|
||||
wlr_renderer_destroy(server->renderer);
|
||||
wlr_backend_destroy(server->backend);
|
||||
seat_finish(server);
|
||||
workspaces_destroy(server);
|
||||
wlr_scene_node_destroy(&server->scene->tree.node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue