diff options
Diffstat (limited to 'src/Ryujinx.Audio/Renderer/Utils/Mailbox.cs')
-rw-r--r-- | src/Ryujinx.Audio/Renderer/Utils/Mailbox.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Ryujinx.Audio/Renderer/Utils/Mailbox.cs b/src/Ryujinx.Audio/Renderer/Utils/Mailbox.cs index 35c71ae3..26907af9 100644 --- a/src/Ryujinx.Audio/Renderer/Utils/Mailbox.cs +++ b/src/Ryujinx.Audio/Renderer/Utils/Mailbox.cs @@ -9,8 +9,8 @@ namespace Ryujinx.Audio.Renderer.Utils /// <typeparam name="T">The target unmanaged type used</typeparam> public class Mailbox<T> : IDisposable where T : unmanaged { - private BlockingCollection<T> _messageQueue; - private BlockingCollection<T> _responseQueue; + private readonly BlockingCollection<T> _messageQueue; + private readonly BlockingCollection<T> _responseQueue; public Mailbox() { @@ -40,6 +40,7 @@ namespace Ryujinx.Audio.Renderer.Utils public void Dispose() { + GC.SuppressFinalize(this); Dispose(true); } @@ -52,4 +53,4 @@ namespace Ryujinx.Audio.Renderer.Utils } } } -}
\ No newline at end of file +} |