From a906f2071cbe4caf53c697bcb7dfa91e3e7dcfae Mon Sep 17 00:00:00 2001 From: Thog Date: Thu, 6 Feb 2020 12:38:24 +0100 Subject: Fix a crash when closing the main UI (#904) * Fix a crash when closing the main Ui Also make sure to dispose the OpenAL context to not leak memory when unloading the emulation context. * Improve keys and 'game already running' dialogs * Make sure to dispose the page table and ThreadContext Less memory leaks! * Fix tests * Address gdk's comments --- Ryujinx.Audio/Renderers/OpenAL/OpenALAudioOut.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'Ryujinx.Audio/Renderers/OpenAL/OpenALAudioOut.cs') diff --git a/Ryujinx.Audio/Renderers/OpenAL/OpenALAudioOut.cs b/Ryujinx.Audio/Renderers/OpenAL/OpenALAudioOut.cs index 30b325a5..ea5ce621 100644 --- a/Ryujinx.Audio/Renderers/OpenAL/OpenALAudioOut.cs +++ b/Ryujinx.Audio/Renderers/OpenAL/OpenALAudioOut.cs @@ -101,6 +101,7 @@ namespace Ryujinx.Audio } _tracks.Clear(); + _context.Dispose(); } /// -- cgit v1.2.3