mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Addressed valgrind complaints by freeing allocations for commands and columns. This leaves one complaint about getpwuid, which is either an optional free, or not valid, depending on OS. (Thanks to Bryce Harrington).
This commit is contained in:
parent
3f233e4644
commit
1274f2ba07
6 changed files with 34 additions and 2 deletions
|
@ -56,6 +56,16 @@ ViewTask::ViewTask ()
|
|||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
ViewTask::~ViewTask ()
|
||||
{
|
||||
std::vector <Column*>::iterator i;
|
||||
for (i = _columns.begin (); i != _columns.end (); ++i)
|
||||
delete *i;
|
||||
|
||||
_columns.clear ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// |<---------- terminal width ---------->|
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue