You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix leak with Vulkan allocator
This commit is contained in:
@@ -7048,6 +7048,7 @@ void RenderingDeviceVulkan::finalize() {
|
|||||||
for (int i = 0; i < staging_buffer_blocks.size(); i++) {
|
for (int i = 0; i < staging_buffer_blocks.size(); i++) {
|
||||||
vmaDestroyBuffer(allocator, staging_buffer_blocks[i].buffer, staging_buffer_blocks[i].allocation);
|
vmaDestroyBuffer(allocator, staging_buffer_blocks[i].buffer, staging_buffer_blocks[i].allocation);
|
||||||
}
|
}
|
||||||
|
vmaDestroyAllocator(allocator);
|
||||||
|
|
||||||
//all these should be clear at this point
|
//all these should be clear at this point
|
||||||
ERR_FAIL_COND(descriptor_pools.size());
|
ERR_FAIL_COND(descriptor_pools.size());
|
||||||
|
|||||||
Reference in New Issue
Block a user