mirror of
https://github.com/glest/glest-source.git
synced 2025-10-01 09:56:41 +02:00
- attempt to fix double free bug
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user