diff options
| author | John Peterson <jpeterson57@gmail.com> | 2009-09-07 13:33:40 +0000 |
|---|---|---|
| committer | John Peterson <jpeterson57@gmail.com> | 2009-09-07 13:33:40 +0000 |
| commit | 24d68da653b6def668ff6946586e60f94aa082af (patch) | |
| tree | 3eb228e226d3f76fa29772f45f3d2714aa58ad11 /Source/Plugins/Plugin_VideoOGL/Src/Debugger/Debugger.cpp | |
| parent | 7dffe43eaa148720f78f8b35709c226f5c1b3ef8 (diff) | |
GUI/OpenGL: Video debugging window crash fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4225 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/Debugger/Debugger.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/Debugger/Debugger.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Debugger/Debugger.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Debugger/Debugger.cpp index b2819eafcb..0af54775d2 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Debugger/Debugger.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Debugger/Debugger.cpp @@ -46,15 +46,20 @@ GFXDebuggerOGL::GFXDebuggerOGL(wxWindow *parent, wxWindowID id, const wxString & GFXDebuggerOGL::~GFXDebuggerOGL() { SaveSettings(); + m_DebuggerFrame = NULL; NOTICE_LOG(CONSOLE, "Stop [Video Thread]: Closing OpenGL debugging window"); } void GFXDebuggerOGL::OnClose(wxCloseEvent& event) { - // save the window position when we hide the window + // This means wxDialog's Destroy is used + //event.Skip(); + + // Save the window position SaveSettings(); - event.Skip(); // This means wxDialog's Destroy is used + // Destroy + delete this; } void GFXDebuggerOGL::SaveSettings() const |
