0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 03:25:46 +00:00

Fix missing domain service object dispose (#4879)

This commit is contained in:
gdkchan 2023-05-10 21:29:17 -03:00 committed by GitHub
parent a7c6e6a8cf
commit 0a0675a7f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,6 +165,12 @@ namespace Ryujinx.Horizon.Sdk.Sf.Cmif
entry.Owner = null; entry.Owner = null;
obj = entry.Obj; obj = entry.Obj;
if (obj.ServiceObject is IDisposable disposableObj)
{
disposableObj.Dispose();
}
entry.Obj = null; entry.Obj = null;
_entries.Remove(entry.Node); _entries.Remove(entry.Node);
entry.Node = null; entry.Node = null;