diff --git a/src/dxvk/dxvk_memory.cpp b/src/dxvk/dxvk_memory.cpp index f9a76c25..3a095c56 100644 --- a/src/dxvk/dxvk_memory.cpp +++ b/src/dxvk/dxvk_memory.cpp @@ -340,6 +340,7 @@ namespace dxvk { if (status != VK_SUCCESS) { Logger::err(str::format("DxvkMemoryAllocator: Mapping memory failed with ", status)); + m_vkd->vkFreeMemory(m_vkd->device(), result.memHandle, nullptr); return DxvkDeviceMemory(); } }