mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
fix for leaks of coroutine handle
This commit is contained in:
parent
2963790e0d
commit
09c7379fe0
|
@ -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<const u32> dcb, std::span<c
|
|||
|
||||
if (ce_task.handle) {
|
||||
ASSERT_MSG(ce_task.handle.done(), "Partially processed CCB");
|
||||
ce_task.handle.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue