mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 20:22:31 +01:00
- attempt to fix double free bug
This commit is contained in:
parent
e74f747fbd
commit
11d4c4a1dc
@ -1039,11 +1039,12 @@ bool ClientInterface::getNetworkCommand(int frameCount, int currentCachedPending
|
||||
|
||||
bool waitForData = false;
|
||||
if(quit == false && this->quitThread == false) {
|
||||
MutexSafeWrapper safeMutex(networkCommandListThreadAccessor,CODE_AT_LINE);
|
||||
safeMutex.ReleaseLock(true);
|
||||
//MutexSafeWrapper safeMutex(networkCommandListThreadAccessor,CODE_AT_LINE);
|
||||
//safeMutex.ReleaseLock(true);
|
||||
|
||||
for(;quit == false && this->quitThread == false;) {
|
||||
safeMutex.Lock();
|
||||
MutexSafeWrapper safeMutex(networkCommandListThreadAccessor,CODE_AT_LINE);
|
||||
//safeMutex.Lock();
|
||||
uint64 copyCachedLastPendingFrameCount = cachedLastPendingFrameCount;
|
||||
if(cachedPendingCommands.find(frameCount) != cachedPendingCommands.end()) {
|
||||
Commands &frameCmdList = cachedPendingCommands[frameCount];
|
||||
|
Loading…
x
Reference in New Issue
Block a user