- After removing a branch, free the memory.
This commit is contained in:
Paul Beckingham 2014-06-14 14:13:34 -04:00
parent 7d4e166277
commit fb4bf3efba

View file

@ -85,6 +85,7 @@ void Tree::removeBranch (Tree* branch)
if (*i == branch)
{
_branches.erase (i);
delete branch;
return;
}
}