Explorar o código

Merge pull request #37881 from qarmin/leak_vulkan

Fixes leaks with Vulkan device and instance
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
84142f6a5f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/vulkan/vulkan_context.cpp

+ 2 - 0
drivers/vulkan/vulkan_context.cpp

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