diff --git a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp index ab4024191..1a37f2c21 100644 --- a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp +++ b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp @@ -703,11 +703,12 @@ VulkanRenderer::~VulkanRenderer() vkDestroyDebugUtilsMessengerEXT(m_instance, m_debugCallback, nullptr); } + for(auto& i : m_destructionQueue) + delete i; + // destroy memory manager memoryManager.reset(); - ProcessDestructionQueue(); - // destroy instance, devices if (m_instance != VK_NULL_HANDLE) {