Merge pull request #37586 from qarmin/vulkan_allocator_leak

Fix leak with Vulkan allocator
This commit is contained in:
Rémi Verschelde 2020-04-07 09:16:02 +02:00 committed by GitHub
commit 597ec5dbf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();