Free resources on exit.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2018-02-13 08:39:17 +00:00
parent 2df7a7c67b
commit ba8221d3ee
2 changed files with 6 additions and 0 deletions

View file

@ -315,6 +315,9 @@ namespace
DiskDestroy();
ImageDestroy();
fclose(g_fh);
g_fh = NULL;
return 0;
}

View file

@ -82,6 +82,8 @@ namespace
DiskDestroy();
ImageDestroy();
fclose(g_fh);
g_fh = NULL;
}
}
@ -170,6 +172,7 @@ QApple::QApple(QWidget *parent) :
void QApple::closeEvent(QCloseEvent *)
{
stopTimer();
stopEmulator();
uninitialiseEmulator();
}