diff options
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-interp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c index 2aa41d6c8b1..75d80933c99 100644 --- a/gdb/cli/cli-interp.c +++ b/gdb/cli/cli-interp.c @@ -44,6 +44,7 @@ class cli_interp final : public cli_interp_base { public: explicit cli_interp (const char *name); + ~cli_interp (); void init (bool top_level) override; void resume () override; @@ -62,6 +63,11 @@ cli_interp::cli_interp (const char *name) this->cli_uiout = cli_out_new (gdb_stdout); } +cli_interp::~cli_interp () +{ + delete cli_uiout; +} + /* Suppress notification struct. */ struct cli_suppress_notification cli_suppress_notification = { |