Fixed a mememory leak networking code
This commit is contained in:
parent
29f7651a50
commit
8ae6eeda05
2 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ Version 1.5.0+svn:
|
|||
* dissallow_observers is on as default if side has controller=null
|
||||
* Fixed null-pointer reference in network code
|
||||
* Added possibility to use per fight EV statistics proposed by maboul
|
||||
* Fixed a mememory leak in networking code
|
||||
* Removed bug introduced in 1.5.0 that allowed use of :debug commands during
|
||||
network play
|
||||
* added some includes to fix compilation problems with Sun Studio 12
|
||||
|
|
|
@ -715,6 +715,7 @@ TCPsocket get_received_data(std::vector<char>& out)
|
|||
received_data_queue.pop_front();
|
||||
out.swap(buf->raw_buffer);
|
||||
const TCPsocket res = buf->sock;
|
||||
delete buf;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue