Fix for random crashes when using F4 (framelimit toggler).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2921 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-04-27 23:27:14 +00:00
parent 80cfbba7b7
commit a68c7b2d45
1 changed files with 2 additions and 2 deletions

View File

@ -296,12 +296,12 @@ protected:
void _post_and_wait( IScopedCoreThread& core )
{
ScopedLock lock( m_mtx_resume );
PostResult();
if( m_resume )
{
ScopedLock lock( m_mtx_resume );
// If the sender of the message requests a non-blocking resume, then we need
// to deallocate the m_sync object, since the sender will likely leave scope and
// invalidate it.