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:
@@ -1039,11 +1039,12 @@ bool ClientInterface::getNetworkCommand(int frameCount, int currentCachedPending
|
|||||||
|
|
||||||
bool waitForData = false;
|
bool waitForData = false;
|
||||||
if(quit == false && this->quitThread == false) {
|
if(quit == false && this->quitThread == false) {
|
||||||
MutexSafeWrapper safeMutex(networkCommandListThreadAccessor,CODE_AT_LINE);
|
//MutexSafeWrapper safeMutex(networkCommandListThreadAccessor,CODE_AT_LINE);
|
||||||
safeMutex.ReleaseLock(true);
|
//safeMutex.ReleaseLock(true);
|
||||||
|
|
||||||
for(;quit == false && this->quitThread == false;) {
|
for(;quit == false && this->quitThread == false;) {
|
||||||
safeMutex.Lock();
|
MutexSafeWrapper safeMutex(networkCommandListThreadAccessor,CODE_AT_LINE);
|
||||||
|
//safeMutex.Lock();
|
||||||
uint64 copyCachedLastPendingFrameCount = cachedLastPendingFrameCount;
|
uint64 copyCachedLastPendingFrameCount = cachedLastPendingFrameCount;
|
||||||
if(cachedPendingCommands.find(frameCount) != cachedPendingCommands.end()) {
|
if(cachedPendingCommands.find(frameCount) != cachedPendingCommands.end()) {
|
||||||
Commands &frameCmdList = cachedPendingCommands[frameCount];
|
Commands &frameCmdList = cachedPendingCommands[frameCount];
|
||||||
|
Reference in New Issue
Block a user