plug memory leak reported by Gustavo Carneiro.

Mathieu Lacage 2007-04-18 07:44:43 +02:00
parent 504a77f44d
commit f7017e22a0
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ NodeList::GetNodes (void)
if (firstTime)
{
TraceRoot::Register ("nodes", MakeCallback (&NodeList::CreateTraceResolver));
firstTime = false;
}
static std::vector<Node *> nodes;
return &nodes;