mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[8318] Deleted as expected runnable objects at related Thread deleting for avoid memory leaks.
This commit is contained in:
parent
dc8bf0f7e7
commit
0f364bf00a
7 changed files with 30 additions and 15 deletions
|
|
@ -926,7 +926,7 @@ bool AuthSocket::_HandleXferResume()
|
|||
ibuf.Read((char*)&start,sizeof(start));
|
||||
fseek(pPatch, start, 0);
|
||||
|
||||
ACE_Based::Thread u(*new PatcherRunnable(this));
|
||||
ACE_Based::Thread u(new PatcherRunnable(this));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -959,7 +959,7 @@ bool AuthSocket::_HandleXferAccept()
|
|||
ibuf.Remove(1); // clear input buffer
|
||||
fseek(pPatch, 0, 0);
|
||||
|
||||
ACE_Based::Thread u(*new PatcherRunnable(this));
|
||||
ACE_Based::Thread u(new PatcherRunnable(this));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue