Dispose Rng

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

View file

@ -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<int, ServiceProcessRequest> 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();
}
}
}
}