summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-04-14 21:45:48 +0200
committerGitHub <noreply@github.com>2020-04-14 21:45:48 +0200
commit84142f6a5fcdf26e2a023e7b3914ac059b63df99 (patch)
treed383de0e57cb6e737183e7986db25ca59b128734
parent1d8a9a9dc858f16f91bd5086826fddeb0610126b (diff)
parent2ab4b054e01881664c0c3a51956105ef8d7749f1 (diff)
Merge pull request #37881 from qarmin/leak_vulkan
Fixes leaks with Vulkan device and instance
-rw-r--r--drivers/vulkan/vulkan_context.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp
index 68b4cdf4a4..16227367ab 100644
--- a/drivers/vulkan/vulkan_context.cpp
+++ b/drivers/vulkan/vulkan_context.cpp
@@ -1503,4 +1503,6 @@ VulkanContext::~VulkanContext() {
if (queue_props) {
free(queue_props);
}
+ vkDestroyDevice(device, nullptr);
+ vkDestroyInstance(inst, nullptr);
}