From 5aeadb1ef8cd27fc5b5071aac20aa7480c0eb7c0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 23 Jan 2024 13:29:26 -0500 Subject: [PATCH] PostProcessing: Don't potentially leak memory in BlitFromTexture() All release() does is relinquish the pointer, rather than free the memory associated with it. --- Source/Core/VideoCommon/PostProcessing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/PostProcessing.cpp b/Source/Core/VideoCommon/PostProcessing.cpp index 3f7682ef96..7b66269ec7 100644 --- a/Source/Core/VideoCommon/PostProcessing.cpp +++ b/Source/Core/VideoCommon/PostProcessing.cpp @@ -580,8 +580,8 @@ void PostProcessing::BlitFromTexture(const MathUtil::Rectangle& dst, default_uniform_staging_buffer = false; } - m_intermediary_frame_buffer.release(); - m_intermediary_color_texture.release(); + m_intermediary_frame_buffer.reset(); + m_intermediary_color_texture.reset(); } // TODO: ideally we'd do the user selected post process pass in the intermediary buffer in linear