From d2ebf6e86cb4c7886434e73dc5ff28c420e02da8 Mon Sep 17 00:00:00 2001 From: Starlet Date: Wed, 4 Jul 2018 12:22:37 -0400 Subject: [PATCH] Dispose Rng --- .../OsHle/Services/Spl/IRandomInterface.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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