Merge pull request #46760 from qarmin/fix_memory_leak_vulkan
Fix memory leak in VulkanContext
This commit is contained in:
commit
daab4c9ac4
1 changed files with 1 additions and 1 deletions
|
@ -1705,7 +1705,7 @@ VulkanContext::~VulkanContext() {
|
||||||
vkDestroySemaphore(device, image_ownership_semaphores[i], nullptr);
|
vkDestroySemaphore(device, image_ownership_semaphores[i], nullptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (inst_initialized && use_validation_layers) {
|
if (inst_initialized && enabled_debug_utils) {
|
||||||
DestroyDebugUtilsMessengerEXT(inst, dbg_messenger, nullptr);
|
DestroyDebugUtilsMessengerEXT(inst, dbg_messenger, nullptr);
|
||||||
}
|
}
|
||||||
vkDestroyDevice(device, nullptr);
|
vkDestroyDevice(device, nullptr);
|
||||||
|
|
Loading…
Reference in a new issue