mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Miscellaneous
- Minor edits of little consequence.
This commit is contained in:
parent
147dd61758
commit
03e53ceaf2
3 changed files with 17 additions and 3 deletions
|
@ -559,6 +559,20 @@ void Context::clear ()
|
|||
tdb2.clear ();
|
||||
a3.clear ();
|
||||
|
||||
// Eliminate the command objects.
|
||||
std::map <std::string, Command*>::iterator com;
|
||||
for (com = commands.begin (); com != commands.end (); ++com)
|
||||
delete com->second;
|
||||
|
||||
commands.clear ();
|
||||
|
||||
// Eliminate the column objects.
|
||||
std::map <std::string, Column*>::iterator col;
|
||||
for (col = columns.begin (); col != columns.end (); ++col)
|
||||
delete col->second;
|
||||
|
||||
columns.clear ();
|
||||
|
||||
clearMessages ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue