djarlaks / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

Releasing resources #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After you send a lot of messages and disconnects a connection, the memory is 
not totally cleared.

It is a good idea to add explicit Clear to the messages queues and other 
collections.

Original issue reported on code.google.com by NN1436401@gmail.com on 21 Sep 2010 at 5:36

GoogleCodeExporter commented 9 years ago
Some are (in FinishDisconnect); I added m_withheldMessages and 
m_fragmentGroups. However, it's probably not needed, since the library does not 
retain a reference to the connection - it will be garbage collected unless the 
user app holds onto it.

Original comment by lidg...@gmail.com on 22 Sep 2010 at 8:25