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 ()
|
void Context::clear ()
|
||||||
{
|
{
|
||||||
tdb2.clear ();
|
tdb2.clear ();
|
||||||
|
parser.clear ();
|
||||||
// TODO parser.clear (); ?
|
|
||||||
|
|
||||||
// Eliminate the command objects.
|
// Eliminate the command objects.
|
||||||
std::map <std::string, Command*>::iterator com;
|
std::map <std::string, Command*>::iterator com;
|
||||||
@@ -712,7 +711,6 @@ void Context::clear ()
|
|||||||
delete col->second;
|
delete col->second;
|
||||||
|
|
||||||
columns.clear ();
|
columns.clear ();
|
||||||
|
|
||||||
clearMessages ();
|
clearMessages ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user