diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/command_executor.cpp | 6 | ||||
-rw-r--r-- | src/main/command_executor.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/main/command_executor.cpp b/src/main/command_executor.cpp index be90be3f0..b1a7c70b5 100644 --- a/src/main/command_executor.cpp +++ b/src/main/command_executor.cpp @@ -57,6 +57,12 @@ CommandExecutor::CommandExecutor(Options& options) d_result() { } +CommandExecutor::~CommandExecutor() +{ + // ensure that symbol manager is destroyed before solver + d_symman.reset(nullptr); + d_solver.reset(nullptr); +} void CommandExecutor::flushStatistics(std::ostream& out) const { diff --git a/src/main/command_executor.h b/src/main/command_executor.h index acf9e45bb..4023b86de 100644 --- a/src/main/command_executor.h +++ b/src/main/command_executor.h @@ -61,9 +61,7 @@ class CommandExecutor public: CommandExecutor(Options& options); - virtual ~CommandExecutor() - { - } + virtual ~CommandExecutor(); /** * Executes a command. Recursively handles if cmd is a command |