Dispose Rng

This commit is contained in:
Starlet 2018-07-04 12:22:37 -04:00
commit d2ebf6e86c

View file

@ -1,10 +1,11 @@
using Ryujinx.HLE.OsHle.Ipc; using Ryujinx.HLE.OsHle.Ipc;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Security.Cryptography; using System.Security.Cryptography;
namespace Ryujinx.HLE.OsHle.Services.Spl namespace Ryujinx.HLE.OsHle.Services.Spl
{ {
class IRandomInterface : IpcService class IRandomInterface : IpcService, IDisposable
{ {
private Dictionary<int, ServiceProcessRequest> m_Commands; private Dictionary<int, ServiceProcessRequest> m_Commands;
@ -32,5 +33,18 @@ namespace Ryujinx.HLE.OsHle.Services.Spl
return 0; return 0;
} }
public void Dispose()
{
Dispose(true);
}
protected virtual void Dispose(bool Disposing)
{
if (Disposing)
{
Rng.Dispose();
}
}
} }
} }