Browse Source

Fixes leaks with Vulkan device and instance

qarmin 5 years ago
parent
commit
2ab4b054e0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/vulkan/vulkan_context.cpp

+ 2 - 0
drivers/vulkan/vulkan_context.cpp

@@ -1503,4 +1503,6 @@ VulkanContext::~VulkanContext() {
 	if (queue_props) {
 	if (queue_props) {
 		free(queue_props);
 		free(queue_props);
 	}
 	}
+	vkDestroyDevice(device, nullptr);
+	vkDestroyInstance(inst, nullptr);
 }
 }