Tree
- After removing a branch, free the memory.
This commit is contained in:
@@ -85,6 +85,7 @@ void Tree::removeBranch (Tree* branch)
|
||||
if (*i == branch)
|
||||
{
|
||||
_branches.erase (i);
|
||||
delete branch;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user