summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-04-07 09:16:02 +0200
committerGitHub <noreply@github.com>2020-04-07 09:16:02 +0200
commit597ec5dbf8e03889a22b80e50eb72d41e1387d64 (patch)
tree334a4b417d664cfcdff2bd13749886b05e17a79f
parent5433188f764a4596757cb5ef91b0ecfb87553cdb (diff)
parenta0832e6f5e621c2d79ba43c7a3aa5e8e75d83695 (diff)
downloadredot-engine-597ec5dbf8e03889a22b80e50eb72d41e1387d64.tar.gz
Merge pull request #37586 from qarmin/vulkan_allocator_leak
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 5f9dabcaa6..01da97cfd5 100644
--- a/drivers/vulkan/rendering_device_vulkan.cpp
+++ b/drivers/vulkan/rendering_device_vulkan.cpp
@@ -7049,6 +7049,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);
while (vertex_formats.size()) {
Map<VertexFormatID, VertexDescriptionCache>::Element *temp = vertex_formats.front();