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:
Jente Hidskes 2019-02-23 19:49:01 +01:00
parent 65f7107078
commit 1c5cbe6de0
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA

1
cage.c
View file

@ -317,7 +317,6 @@ end:
wlr_data_device_manager_destroy(data_device_mgr);
wlr_compositor_destroy(compositor);
wlr_output_layout_destroy(server.output_layout);
wlr_backend_destroy(server.backend);
/* This function is not null-safe, but we only ever get here
with a proper wl_display. */
wl_display_destroy(server.wl_display);