summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PostProcessing.cpp
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2024-01-23 13:29:26 -0500
committerLioncash <mai.iam2048@gmail.com>2024-01-23 13:34:40 -0500
commit5aeadb1ef8cd27fc5b5071aac20aa7480c0eb7c0 (patch)
tree82080e1415daf8b3006034fe55f289d2b42e1ee3 /Source/Core/VideoCommon/PostProcessing.cpp
parenta3f9f2c7aaaf9225736162282a8f3d0c47f1fc4f (diff)
PostProcessing: Don't potentially leak memory in BlitFromTexture()
All release() does is relinquish the pointer, rather than free the memory associated with it.
Diffstat (limited to 'Source/Core/VideoCommon/PostProcessing.cpp')
-rw-r--r--Source/Core/VideoCommon/PostProcessing.cpp4
1 files 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<int>& 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