resolve ObjectDisposedException

fixes 713944724d
This commit is contained in:
CasualPokePlayer 2023-01-26 01:24:34 -08:00
parent 713944724d
commit 0170d8f0f0
1 changed files with 4 additions and 2 deletions

View File

@ -810,8 +810,12 @@ namespace BizHawk.Client.EmuHawk
Render();
IDisposable raMemHack = (RA as RAIntegration)?.ThisIsTheRAMemHack();
CheckMessages();
if (RA is RAIntegration) raMemHack!.Dispose();
if (_exitRequestPending)
{
_exitRequestPending = false;
@ -2296,8 +2300,6 @@ namespace BizHawk.Client.EmuHawk
private void CheckMessages()
{
using var raMemHack = (RA as RAIntegration)?.ThisIsTheRAMemHack();
Application.DoEvents();
if (ActiveForm != null)
{