diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/output.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/wayland/output.c b/backend/wayland/output.c index ca16cbf5..1e96f03b 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); } |