mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Merge remote-tracking branch 'upstream/master' into output-damage
This commit is contained in:
commit
59c53e8333
16 changed files with 220 additions and 92 deletions
|
|
@ -85,12 +85,24 @@ static void wlr_wl_backend_destroy(struct wlr_backend *_backend) {
|
|||
|
||||
wl_event_source_remove(backend->remote_display_src);
|
||||
wlr_egl_finish(&backend->egl);
|
||||
if (backend->seat) wl_seat_destroy(backend->seat);
|
||||
if (backend->shm) wl_shm_destroy(backend->shm);
|
||||
if (backend->shell) zxdg_shell_v6_destroy(backend->shell);
|
||||
if (backend->compositor) wl_compositor_destroy(backend->compositor);
|
||||
if (backend->registry) wl_registry_destroy(backend->registry);
|
||||
if (backend->remote_display) wl_display_disconnect(backend->remote_display);
|
||||
if (backend->seat) {
|
||||
wl_seat_destroy(backend->seat);
|
||||
}
|
||||
if (backend->shm) {
|
||||
wl_shm_destroy(backend->shm);
|
||||
}
|
||||
if (backend->shell) {
|
||||
zxdg_shell_v6_destroy(backend->shell);
|
||||
}
|
||||
if (backend->compositor) {
|
||||
wl_compositor_destroy(backend->compositor);
|
||||
}
|
||||
if (backend->registry) {
|
||||
wl_registry_destroy(backend->registry);
|
||||
}
|
||||
if (backend->remote_display) {
|
||||
wl_display_disconnect(backend->remote_display);
|
||||
}
|
||||
free(backend);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue