Răsfoiți Sursa

Merge pull request #37881 from qarmin/leak_vulkan

Fixes leaks with Vulkan device and instance
Rémi Verschelde 5 ani în urmă
părinte
comite
84142f6a5f
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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);
 }