wlr-export-dmabuf-v1: handle output destroy

We were storing a wlr_output without listening for the destroy
event.

Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3646
This commit is contained in:
Simon Ser 2023-05-10 16:31:48 +02:00 committed by Alexander Orzechowski
parent 095a63a11c
commit 2a1234a820
2 changed files with 10 additions and 0 deletions

View file

@ -34,6 +34,7 @@ struct wlr_export_dmabuf_frame_v1 {
bool cursor_locked;
struct wl_listener output_commit;
struct wl_listener output_destroy;
};
struct wlr_export_dmabuf_manager_v1 *wlr_export_dmabuf_manager_v1_create(