From 6af6708bf1a78089a3163a43264a7b74289f43bc Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Sat, 14 Jan 2012 10:38:24 +0200 Subject: [PATCH] NULL some window pointers when quitting This makes it much less likely that the emulator would segfault when quit on Win32. --- src/plat-wxwidgets/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plat-wxwidgets/main.cpp b/src/plat-wxwidgets/main.cpp index b2538afd..6c3a0e7f 100644 --- a/src/plat-wxwidgets/main.cpp +++ b/src/plat-wxwidgets/main.cpp @@ -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(); -- 2.11.4.GIT