From f4b173bbd18ff7906b6710e58ba64cb25e8c54fc Mon Sep 17 00:00:00 2001 From: "gregory.hainaut" Date: Sun, 16 Jun 2013 09:43:34 +0000 Subject: [PATCH] gsdx: miss a part of the previous patch... git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5672 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GS.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/GS.cpp b/plugins/GSdx/GS.cpp index eed664824a..bab734391f 100644 --- a/plugins/GSdx/GS.cpp +++ b/plugins/GSdx/GS.cpp @@ -179,11 +179,14 @@ EXPORT_C GSclose() s_gs->m_dev = NULL; - s_gs->m_wnd->Detach(); + if (s->gs_m_wnd) + { + s_gs->m_wnd->Detach(); - delete s_gs->m_wnd; + delete s_gs->m_wnd; - s_gs->m_wnd = NULL; + s_gs->m_wnd = NULL; + } } static int _GSopen(void** dsp, char* title, int renderer, int threads = -1)