From 6da71b6a899dbdb45ee8ec29986ab5a888d2d8ee Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Wed, 26 Jun 2024 22:39:08 +0200 Subject: [PATCH] render/vulkan: Unref color transform on pass submit We increment the ref counter of the color transform at the start of the render pass. Decrement it at the end to not leak the color transform. --- render/vulkan/pass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/render/vulkan/pass.c b/render/vulkan/pass.c index 464cdbc1..d4305488 100644 --- a/render/vulkan/pass.c +++ b/render/vulkan/pass.c @@ -443,6 +443,7 @@ static bool render_pass_submit(struct wlr_render_pass *wlr_pass) { wlr_log(WLR_ERROR, "Failed to sync render buffer"); } + wlr_color_transform_unref(pass->color_transform); wlr_buffer_unlock(render_buffer->wlr_buffer); rect_union_finish(&pass->updated_region); free(pass);