From: Chad Versace Date: Fri, 15 Jan 2016 18:07:16 +0000 (-0800) Subject: anv/meta: Stop leaking renderpass and framebuffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eab6212efd36fadc76e7f6b451d4ecb79b867c3e;p=mesa.git anv/meta: Stop leaking renderpass and framebuffer --- 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); } } }