diff options
Diffstat (limited to 'gdb/cli-out.c')
-rw-r--r-- | gdb/cli-out.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli-out.c b/gdb/cli-out.c index e882756..b98af4a 100644 --- a/gdb/cli-out.c +++ b/gdb/cli-out.c @@ -47,7 +47,7 @@ cli_uiout_dtor (struct ui_out *ui_out) cli_out_data *data = (cli_out_data *) ui_out_data (ui_out); VEC_free (ui_filep, data->streams); - xfree (data); + delete data; } /* These are the CLI output functions */ @@ -395,7 +395,7 @@ struct ui_out * cli_out_new (struct ui_file *stream) { int flags = ui_source_list; - cli_out_data *data = XNEW (cli_out_data); + cli_out_data *data = new cli_out_data (); cli_out_data_ctor (data, stream); return ui_out_new (&cli_ui_out_impl, data, flags); |