mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Fix missing domain service object dispose (#4879)
This commit is contained in:
parent
a7c6e6a8cf
commit
0a0675a7f6
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue