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:
Ilari Liusvaara 2012-01-14 10:38:24 +02:00
parent 3251566d6c
commit 6af6708bf1

View file

@ -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();