diff --git a/backend/wayland/output.c b/backend/wayland/output.c index ca16cbf5d..1e96f03b5 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -116,6 +116,9 @@ void destroy_wl_buffer(struct wlr_wl_buffer *buffer) { wl_list_remove(&buffer->buffer_destroy.link); wl_list_remove(&buffer->link); wl_buffer_destroy(buffer->wl_buffer); + if (!buffer->released) { + wlr_buffer_unlock(buffer->buffer); + } free(buffer); }