From cf83be8b3c9ae63f52049c2cb05da05483cc35c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 13 Aug 2023 13:55:51 +0200 Subject: [PATCH] Very small memory leak fix --- Common/GPU/OpenGL/GLRenderManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/GPU/OpenGL/GLRenderManager.cpp b/Common/GPU/OpenGL/GLRenderManager.cpp index 1e06d2ac83..6026443f48 100644 --- a/Common/GPU/OpenGL/GLRenderManager.cpp +++ b/Common/GPU/OpenGL/GLRenderManager.cpp @@ -147,6 +147,7 @@ bool GLRenderManager::ThreadFrame() { // We got a task! We can now have pushMutex_ unlocked, allowing the host to // push more work when it feels like it, and just start working. if (task->runType == GLRRunType::EXIT) { + delete task; // Oh, host wanted out. Let's leave, and also let's notify the host. // This is unlike Vulkan too which can just block on the thread existing. std::unique_lock lock(syncMutex_);