mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +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)
|
if (*i == branch)
|
||||||
{
|
{
|
||||||
_branches.erase (i);
|
_branches.erase (i);
|
||||||
|
delete branch;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue