NULL some window pointers when quitting
This makes it much less likely that the emulator would segfault when quit on Win32.
This commit is contained in:
parent
3251566d6c
commit
6af6708bf1
1 changed files with 4 additions and 0 deletions
|
@ -333,6 +333,10 @@ bool lsnes_app::OnInit()
|
|||
|
||||
int lsnes_app::OnExit()
|
||||
{
|
||||
//NULL these so no further messages will be sent.
|
||||
msg_window = NULL;
|
||||
status_window = NULL;
|
||||
main_window = NULL;
|
||||
information_dispatch::do_dump_end();
|
||||
rrdata::close();
|
||||
save_configuration();
|
||||
|
|
Loading…
Add table
Reference in a new issue