From 915cf0bae8d6b6507be67971b0273cfc8b9f1323 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 31 Dec 2019 12:57:46 +0300 Subject: [PATCH] vk: Do not leak mapped memory --- rpcs3/Emu/RSX/VK/VKOverlays.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKOverlays.h b/rpcs3/Emu/RSX/VK/VKOverlays.h index e3ff47659d..c4cd588647 100644 --- a/rpcs3/Emu/RSX/VK/VKOverlays.h +++ b/rpcs3/Emu/RSX/VK/VKOverlays.h @@ -55,7 +55,11 @@ namespace vk renderpass_config.set_primitive_type(VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP); } - ~overlay_pass() = default; + ~overlay_pass() + { + m_vao.destroy(); + m_ubo.destroy(); + } u64 get_pipeline_key(VkRenderPass pass) {