mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2025-02-17 02:22:07 +01:00
swapchain: remove allocator listener on destroy
Past that point the wlr_allocator is gone and the listeners are invalidated.
This commit is contained in:
parent
254c5fc752
commit
8619ffab21
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,8 @@ static void swapchain_handle_allocator_destroy(struct wl_listener *listener,
|
||||||
struct wlr_swapchain *swapchain =
|
struct wlr_swapchain *swapchain =
|
||||||
wl_container_of(listener, swapchain, allocator_destroy);
|
wl_container_of(listener, swapchain, allocator_destroy);
|
||||||
swapchain->allocator = NULL;
|
swapchain->allocator = NULL;
|
||||||
|
wl_list_remove(&swapchain->allocator_destroy.link);
|
||||||
|
wl_list_init(&swapchain->allocator_destroy.link);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_swapchain *wlr_swapchain_create(
|
struct wlr_swapchain *wlr_swapchain_create(
|
||||||
|
|
Loading…
Add table
Reference in a new issue