commit | b8d47928094f55a5166ac18c4451d59e4b48b907 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Sat Apr 04 11:22:35 2020 +0100 |
committer | Ben Clayton <bclayton@google.com> | Sat Apr 04 21:01:37 2020 +0000 |
tree | b6bfcbf08f54978c1c1f41d4b8213eb65b21904c | |
parent | ad6d1b30e0f1b5d28e91da61dadfa31d94ddffe6 [diff] |
Vulkan: Destruct the list of vk::Query in QueryPool Bug: b/153168751 Bug: b/153206490 Change-Id: I2822f60aa380ae3885bc674d9f7b1f283c087e95 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43490 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Tested-by: Ben Clayton <bclayton@google.com>
diff --git a/src/Vulkan/VkQueryPool.cpp b/src/Vulkan/VkQueryPool.cpp index 30000f7..b313620 100644 --- a/src/Vulkan/VkQueryPool.cpp +++ b/src/Vulkan/VkQueryPool.cpp
@@ -112,6 +112,11 @@ void QueryPool::destroy(const VkAllocationCallbacks *pAllocator) { + for(uint32_t i = 0; i < count; i++) + { + pool[i].~Query(); + } + vk::deallocate(pool, pAllocator); }