From 850dbb36f074bf9a37c89e336aeefe570b642911 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 3 Jun 2014 01:31:25 -0400 Subject: [PATCH] Context - ::clear now calls Parser::clear, which prevents the parse tree from growing with every shell command. --- src/Context.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index b78866f3e..69096413a 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -696,8 +696,7 @@ void Context::decomposeSortField ( void Context::clear () { tdb2.clear (); - - // TODO parser.clear (); ? + parser.clear (); // Eliminate the command objects. std::map ::iterator com; @@ -712,7 +711,6 @@ void Context::clear () delete col->second; columns.clear (); - clearMessages (); }