I managed to take the memory leaks to 400 lines. I was actually right. It is thinking about my globals as memory leaks.
I have made a table like this:
ID, STRING, REF Count
And I'm actually keeping just the id in the strings. This gives really fast comparing.
And I have made for example a new actor event:
static const RE_String new_actor = "NewActor"; // this way the lookup for id is done just once at init
Strange. Maybe here comes this? What is beeing used for?:
I've seen this code:
#define new new (_FILE_, _LINE_, _LINE);