From 64ca08f02f03e5cbf1b7276654a875ff77a3922b Mon Sep 17 00:00:00 2001 From: arcum42 Date: Sat, 6 Dec 2008 22:13:21 +0000 Subject: [PATCH] Don't try to close non-existant threads. Prevents a crashing bug in Linux git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@396 a6443dda-0b58-4228-96e9-037be469359c --- pcsx2/GS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS.cpp b/pcsx2/GS.cpp index 263c11556b..abc65692a1 100644 --- a/pcsx2/GS.cpp +++ b/pcsx2/GS.cpp @@ -517,7 +517,7 @@ void gsShutdown() SysPrintf("Closing gs thread\n"); GS_SETEVENT(); - thread_close( g_hVuGsThread ); + if (g_hVuGsThread != NULL) thread_close( g_hVuGsThread ); event_destroy( g_hGsEvent ); mutex_destroy( gsRingRestartLock );