Miscellaneous

- Minor edits of little consequence.
This commit is contained in:
Paul Beckingham 2011-09-11 23:06:51 -04:00
parent 147dd61758
commit 03e53ceaf2
3 changed files with 17 additions and 3 deletions

View file

@ -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 ();
}