mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
bc7aa1a500
commit
7ab5cb20c8
|
@ -36,7 +36,6 @@ GSThread::GSThread()
|
|||
|
||||
GSThread::~GSThread()
|
||||
{
|
||||
CloseThread();
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
Loading…
Reference in New Issue