From 09c7379fe072735f05c4609849b614840f8ef9f1 Mon Sep 17 00:00:00 2001 From: psucien Date: Sun, 26 May 2024 18:18:32 +0200 Subject: [PATCH] fix for leaks of coroutine handle --- src/video_core/amdgpu/liverpool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video_core/amdgpu/liverpool.cpp b/src/video_core/amdgpu/liverpool.cpp index bd10b302..50e5398f 100644 --- a/src/video_core/amdgpu/liverpool.cpp +++ b/src/video_core/amdgpu/liverpool.cpp @@ -54,6 +54,8 @@ void Liverpool::Process(std::stop_token stoken) { task.resume(); if (task.done()) { + task.destroy(); + std::scoped_lock lock{queue.m_access}; queue.submits.pop(); @@ -268,6 +270,7 @@ Liverpool::Task Liverpool::ProcessGraphics(std::span dcb, std::span