Free resources on exit.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
2df7a7c67b
commit
ba8221d3ee
2 changed files with 6 additions and 0 deletions
|
@ -315,6 +315,9 @@ namespace
|
|||
DiskDestroy();
|
||||
ImageDestroy();
|
||||
|
||||
fclose(g_fh);
|
||||
g_fh = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue