diff --git a/Ryujinx.HLE/OsHle/Services/Spl/IRandomInterface.cs b/Ryujinx.HLE/OsHle/Services/Spl/IRandomInterface.cs index e17dab7c3b..489ca52ce6 100644 --- a/Ryujinx.HLE/OsHle/Services/Spl/IRandomInterface.cs +++ b/Ryujinx.HLE/OsHle/Services/Spl/IRandomInterface.cs @@ -1,10 +1,11 @@ using Ryujinx.HLE.OsHle.Ipc; +using System; using System.Collections.Generic; using System.Security.Cryptography; namespace Ryujinx.HLE.OsHle.Services.Spl { - class IRandomInterface : IpcService + class IRandomInterface : IpcService, IDisposable { private Dictionary m_Commands; @@ -32,5 +33,18 @@ namespace Ryujinx.HLE.OsHle.Services.Spl return 0; } + + public void Dispose() + { + Dispose(true); + } + + protected virtual void Dispose(bool Disposing) + { + if (Disposing) + { + Rng.Dispose(); + } + } } } \ No newline at end of file