- 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

View File

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