diff options
Diffstat (limited to 'Ryujinx.Audio.Backends.OpenAL/OpenALHardwareDeviceSession.cs')
| -rw-r--r-- | Ryujinx.Audio.Backends.OpenAL/OpenALHardwareDeviceSession.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Ryujinx.Audio.Backends.OpenAL/OpenALHardwareDeviceSession.cs b/Ryujinx.Audio.Backends.OpenAL/OpenALHardwareDeviceSession.cs index f0227bf8..f0c0f498 100644 --- a/Ryujinx.Audio.Backends.OpenAL/OpenALHardwareDeviceSession.cs +++ b/Ryujinx.Audio.Backends.OpenAL/OpenALHardwareDeviceSession.cs @@ -190,7 +190,7 @@ namespace Ryujinx.Audio.Backends.OpenAL protected virtual void Dispose(bool disposing) { - if (disposing) + if (disposing && _driver.Unregister(this)) { lock (_lock) { @@ -198,8 +198,6 @@ namespace Ryujinx.Audio.Backends.OpenAL Stop(); AL.DeleteSource(_sourceId); - - _driver.Unregister(this); } } } |
