summaryrefslogtreecommitdiff
path: root/drivers/vulkan/vulkan_context.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2020-04-14 20:15:48 +0200
committerqarmin <mikrutrafal54@gmail.com>2020-04-14 20:15:48 +0200
commit2ab4b054e01881664c0c3a51956105ef8d7749f1 (patch)
treeeac1c038e922364ea5bd15f7ff1916a1271220a4 /drivers/vulkan/vulkan_context.cpp
parent6366332949a4e9cbf327b9b19f91cc879737bdeb (diff)
Fixes leaks with Vulkan device and instance
Diffstat (limited to 'drivers/vulkan/vulkan_context.cpp')
-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);
}