From 0a0675a7f610354c17b2b642738b6fbd2dfc91ba Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 10 May 2023 21:29:17 -0300 Subject: [PATCH] Fix missing domain service object dispose (#4879) --- src/Ryujinx.Horizon/Sdk/Sf/Cmif/ServerDomainManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Ryujinx.Horizon/Sdk/Sf/Cmif/ServerDomainManager.cs b/src/Ryujinx.Horizon/Sdk/Sf/Cmif/ServerDomainManager.cs index 62ee2738..f789b6c0 100644 --- a/src/Ryujinx.Horizon/Sdk/Sf/Cmif/ServerDomainManager.cs +++ b/src/Ryujinx.Horizon/Sdk/Sf/Cmif/ServerDomainManager.cs @@ -165,6 +165,12 @@ namespace Ryujinx.Horizon.Sdk.Sf.Cmif entry.Owner = null; obj = entry.Obj; + + if (obj.ServiceObject is IDisposable disposableObj) + { + disposableObj.Dispose(); + } + entry.Obj = null; _entries.Remove(entry.Node); entry.Node = null;