Skip to content

Commit

Permalink
Merge pull request #46760 from qarmin/fix_memory_leak_vulkan
Browse files Browse the repository at this point in the history
Fix memory leak in VulkanContext
  • Loading branch information
akien-mga authored Mar 7, 2021
2 parents c487f1e + f9d0ea9 commit daab4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vulkan/vulkan_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ VulkanContext::~VulkanContext() {
vkDestroySemaphore(device, image_ownership_semaphores[i], nullptr);
}
}
if (inst_initialized && use_validation_layers) {
if (inst_initialized && enabled_debug_utils) {
DestroyDebugUtilsMessengerEXT(inst, dbg_messenger, nullptr);
}
vkDestroyDevice(device, nullptr);
Expand Down

0 comments on commit daab4c9

Please sign in to comment.