mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/wayland: fix segfault when destroying backend before starting it
This commit is contained in:
parent
75b10cd621
commit
9e3dd6b560
1 changed files with 3 additions and 1 deletions
|
@ -87,7 +87,9 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
|
|||
|
||||
free(backend->seat_name);
|
||||
|
||||
wl_event_source_remove(backend->remote_display_src);
|
||||
if (backend->remote_display_src) {
|
||||
wl_event_source_remove(backend->remote_display_src);
|
||||
}
|
||||
wlr_renderer_destroy(backend->renderer);
|
||||
wlr_egl_finish(&backend->egl);
|
||||
if (backend->pointer) {
|
||||
|
|
Loading…
Reference in a new issue