little memleak: group AI destructor is not called

little memleak: group AI destructor is not called

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

little memleak: group AI destructor is not called

Post by jcnossen »

If I see it correctly, IGroupAI has no virtual destructor and therefore the ReleaseAI function inside the AI dlls doesn't call the correct destructor.
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

Hmm thats correct I better fix it.
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

It has happened to me to see the Battleroom grow from a few MBs at the time i start it to some 180 MBs after a few games are played. Must be something of the sort...

Of course it has a simple solution... Restart the Battleroom client once in a while.
el_muchacho
Posts: 201
Joined: 30 Apr 2005, 01:06

Post by el_muchacho »

Yes, the map selection doesn't seem to release memory. Consumption goes up by 2 Mb every time one clicks on a new map.
Post Reply

Return to “Engine”