Original Post
I am having trouble with the folllowing snippet of code:
The fluid studios memory manager reports that this is leaking memory. I can''t understand why. pLeaf and pNodes are both STL vectors, containing objects.
int Tree::addLeaf()
{
_pLeaf.push_back( Leaf(this) );
return -(_pLeaf.size());
}
int Tree::addNode()
{
_pNodes.push_back( Node(this) );
return _pNodes.size();
}