Memory leak in OpenTNL EventConnection
by Ivan · in Torque Game Engine · 11/03/2008 (4:22 am) · 0 replies
I think I've found memory leak in OpenTNL when using EventConnection.
It appears that all sent but not processed by remote host guaranteed events (NetEvent class)
not released in destruction of EventConnection.
To fix this this add "clearAllPacketNotifies();" as a first string in EventConnection destrictor:
EventConnection::~EventConnection()
{
clearAllPacketNotifies();///BUGFIX
....
Admins, please verify/confirm/reject/comment/add to cvs
On my server this leak summed up to 600Mb after 1-2 month.
Thanks,
Ivan
It appears that all sent but not processed by remote host guaranteed events (NetEvent class)
not released in destruction of EventConnection.
To fix this this add "clearAllPacketNotifies();" as a first string in EventConnection destrictor:
EventConnection::~EventConnection()
{
clearAllPacketNotifies();///BUGFIX
....
Admins, please verify/confirm/reject/comment/add to cvs
On my server this leak summed up to 600Mb after 1-2 month.
Thanks,
Ivan
About the author