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.
This commit is contained in:
Kenny Levinsen 2024-06-26 22:39:08 +02:00
parent f320df65e6
commit 6da71b6a89

View File

@ -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);