diff options
author | qarmin <mikrutrafal54@gmail.com> | 2020-04-14 20:15:48 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2020-04-14 20:15:48 +0200 |
commit | 2ab4b054e01881664c0c3a51956105ef8d7749f1 (patch) | |
tree | eac1c038e922364ea5bd15f7ff1916a1271220a4 /drivers/vulkan | |
parent | 6366332949a4e9cbf327b9b19f91cc879737bdeb (diff) |
Fixes leaks with Vulkan device and instance
Diffstat (limited to 'drivers/vulkan')
-rw-r--r-- | drivers/vulkan/vulkan_context.cpp | 2 |
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); } |