anv/meta: Stop leaking renderpass and framebuffer

This commit is contained in:
Chad Versace 2016-01-15 10:07:16 -08:00
parent 482a1f5eab
commit eab6212efd

View file

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