diff --git a/EventMonitor/App.cpp b/EventMonitor/App.cpp index f92dd8d..6fef987 100644 --- a/EventMonitor/App.cpp +++ b/EventMonitor/App.cpp @@ -70,9 +70,9 @@ bool wxEventMonitorApp::OnInit() } #endif - m_mainWnd = new wxEventMonitorFrame(NULL); - wxPersistentRegisterAndRestore(m_mainWnd); - m_mainWnd->Show(); + wxEventMonitorFrame *mainWnd = new wxEventMonitorFrame(NULL); + wxPersistentRegisterAndRestore(mainWnd); + mainWnd->Show(); return true; } diff --git a/EventMonitor/App.h b/EventMonitor/App.h index 9c88010..e318603 100644 --- a/EventMonitor/App.h +++ b/EventMonitor/App.h @@ -54,7 +54,6 @@ public: //virtual int OnExit(); public: - wxEventMonitorFrame *m_mainWnd; ///< Main window wxLocale m_locale; ///< Current locale };