From a0832e6f5e621c2d79ba43c7a3aa5e8e75d83695 Mon Sep 17 00:00:00 2001 From: qarmin Date: Sat, 4 Apr 2020 20:16:48 +0200 Subject: Fix leak with Vulkan allocator --- drivers/vulkan/rendering_device_vulkan.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp index 69957d9939..a9179b035c 100644 --- a/drivers/vulkan/rendering_device_vulkan.cpp +++ b/drivers/vulkan/rendering_device_vulkan.cpp @@ -7048,6 +7048,7 @@ void RenderingDeviceVulkan::finalize() { for (int i = 0; i < staging_buffer_blocks.size(); i++) { vmaDestroyBuffer(allocator, staging_buffer_blocks[i].buffer, staging_buffer_blocks[i].allocation); } + vmaDestroyAllocator(allocator); //all these should be clear at this point ERR_FAIL_COND(descriptor_pools.size()); -- cgit v1.2.3