Very small memory leak fix

This commit is contained in:
Henrik Rydgård committed 2023-08-13 13:55:51 +02:00
1 parent 2a74a0b98a
commit cf83be8b3c
1 file changed
+1
+1
View File
@@ -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<std::mutex> lock(syncMutex_);