summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2020-04-04 20:16:48 +0200
committerqarmin <mikrutrafal54@gmail.com>2020-04-04 20:16:48 +0200
commita0832e6f5e621c2d79ba43c7a3aa5e8e75d83695 (patch)
treeb868dcc093e0311d66a47e02da5fbbe5dab7d4bd
parentda887714be65290697f0b1071acde580711570bc (diff)
Fix leak with Vulkan allocator
-rw-r--r--drivers/vulkan/rendering_device_vulkan.cpp1
1 files changed, 1 insertions, 0 deletions
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());