mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tree
- After removing a branch, free the memory.
This commit is contained in:
parent
7d4e166277
commit
fb4bf3efba
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ void Tree::removeBranch (Tree* branch)
|
|||
if (*i == branch)
|
||||
{
|
||||
_branches.erase (i);
|
||||
delete branch;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue