mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-15 05:34:33 -04:00
Cage: don't destroy wlr_backend manually
The backend gets destroyed automatically when the wl_display is destroyed, so we're getting a use-after-free when we do this ourselves again. Fixes #44
This commit is contained in:
parent
65f7107078
commit
1c5cbe6de0
1 changed files with 0 additions and 1 deletions
1
cage.c
1
cage.c
|
|
@ -317,7 +317,6 @@ end:
|
||||||
wlr_data_device_manager_destroy(data_device_mgr);
|
wlr_data_device_manager_destroy(data_device_mgr);
|
||||||
wlr_compositor_destroy(compositor);
|
wlr_compositor_destroy(compositor);
|
||||||
wlr_output_layout_destroy(server.output_layout);
|
wlr_output_layout_destroy(server.output_layout);
|
||||||
wlr_backend_destroy(server.backend);
|
|
||||||
/* This function is not null-safe, but we only ever get here
|
/* This function is not null-safe, but we only ever get here
|
||||||
with a proper wl_display. */
|
with a proper wl_display. */
|
||||||
wl_display_destroy(server.wl_display);
|
wl_display_destroy(server.wl_display);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue