gsdx: Don't close threads twice

CloseThread is called in the GSJobQueue destructor, so don't call it
again in the GSThread destructor.

Fixes #392, which was caused by a use after free.

Also prevents pthread_join() from being called twice for each thread
on non-Windows operating systems, which is undefined behaviour.
This commit is contained in:
Jonathan Li committed 2016-10-28 18:33:35 +01:00
1 parent bc7aa1a500
commit 7ab5cb20c8
1 file changed
-1
-1
View File
@@ -36,7 +36,6 @@ GSThread::GSThread()
GSThread::~GSThread()
{
CloseThread();
}
#ifdef _WIN32