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 2016-10-28 17:49:21 +01:00
parent bc7aa1a500
commit 7ab5cb20c8
1 changed files with 0 additions and 1 deletions

View File

@ -36,7 +36,6 @@ GSThread::GSThread()
GSThread::~GSThread()
{
CloseThread();
}
#ifdef _WIN32