Context
- ::clear now calls Parser::clear, which prevents the parse tree from growing with every shell command.
This commit is contained in:
@@ -696,8 +696,7 @@ void Context::decomposeSortField (
|
||||
void Context::clear ()
|
||||
{
|
||||
tdb2.clear ();
|
||||
|
||||
// TODO parser.clear (); ?
|
||||
parser.clear ();
|
||||
|
||||
// Eliminate the command objects.
|
||||
std::map <std::string, Command*>::iterator com;
|
||||
@@ -712,7 +711,6 @@ void Context::clear ()
|
||||
delete col->second;
|
||||
|
||||
columns.clear ();
|
||||
|
||||
clearMessages ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user