From: trevor_hansen Date: Tue, 18 Jan 2011 12:51:49 +0000 (+0000) Subject: Fix. ClearAllTables() deleted all the dynamically allocated memory, but left the... X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=8d7ce6d0cb5314715892443194a6f641dff51ca6;p=francis%2Fstp.git Fix. ClearAllTables() deleted all the dynamically allocated memory, but left the containers that pointed to them around. Fine if called by the destructor, not fine if called elsewhere. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1070 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/simplifier/bvsolver.h b/src/simplifier/bvsolver.h index 35e8978..7e65615 100644 --- a/src/simplifier/bvsolver.h +++ b/src/simplifier/bvsolver.h @@ -181,6 +181,8 @@ namespace BEEV for (SymbolPtrToNode::iterator it = TermsAlreadySeenMap.begin(); it != TermsAlreadySeenMap.end() ; it++) delete (it->second); + symbol_graph.clear(); + TermsAlreadySeenMap.clear(); } //End of ClearAllTables()