From eab6212efd36fadc76e7f6b451d4ecb79b867c3e Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Fri, 15 Jan 2016 10:07:16 -0800 Subject: [PATCH] anv/meta: Stop leaking renderpass and framebuffer --- src/vulkan/anv_meta_clear.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vulkan/anv_meta_clear.c b/src/vulkan/anv_meta_clear.c index fd401bc968e..34087804075 100644 --- a/src/vulkan/anv_meta_clear.c +++ b/src/vulkan/anv_meta_clear.c @@ -932,8 +932,10 @@ anv_cmd_clear_image(VkCommandBuffer cmd_buffer_h, VK_SUBPASS_CONTENTS_INLINE); ANV_CALL(CmdEndRenderPass)(cmd_buffer_h); - - /* XXX: We're leaking the render pass and framebuffer */ + ANV_CALL(DestroyRenderPass)(device_h, pass, + &cmd_buffer->pool->alloc); + ANV_CALL(DestroyFramebuffer)(device_h, fb, + &cmd_buffer->pool->alloc); } } } -- 2.30.2