We need to ensure mempak is closed when CN64System is closed, otherwise the handle will never be closed.

This commit is contained in:
Emmet Young 2015-03-03 22:49:02 +11:00
parent 2f4e21577a
commit 4f1c760236
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ CN64System::CN64System ( CPlugins * Plugins, bool SavesReadOnly ) :
CN64System::~CN64System ( void )
{
SetActiveSystem(false);
Mempak::Close();
if (m_SyncCPU)
{
m_SyncCPU->CpuStopped();