mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
anv/meta: Stop leaking renderpass and framebuffer
This commit is contained in:
parent
482a1f5eab
commit
eab6212efd
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue