- attempt to fix double free bug

This commit is contained in:
Mark Vejvoda 2013-03-08 21:53:11 +00:00
parent 11d4c4a1dc
commit 760ba99fd7
1 changed files with 2 additions and 2 deletions

View File

@ -1055,13 +1055,13 @@ bool ClientInterface::getNetworkCommand(int frameCount, int currentCachedPending
//cachedPendingCommands.erase(frameCount);
cachedPendingCommands[frameCount].clear();
}
safeMutex.ReleaseLock(true);
safeMutex.ReleaseLock();
result = true;
break;
}
else {
safeMutex.ReleaseLock(true);
safeMutex.ReleaseLock();
// No data for this frame
//if(cachedPendingCommandsIndex > currentCachedPendingCommandsIndex) {
// break;