diff options
Diffstat (limited to 'gdb/tui/tui-source.c')
-rw-r--r-- | gdb/tui/tui-source.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c index 906006a..c379173 100644 --- a/gdb/tui/tui-source.c +++ b/gdb/tui/tui-source.c @@ -184,9 +184,7 @@ tui_source_window::set_contents (struct gdbarch *arch, symtab_to_fullname (s)) == 0 && cur_line_no == locator->line_no); - xfree (content[cur_line].line); - content[cur_line].line - = xstrdup (text.c_str ()); + content[cur_line].line.reset (xstrdup (text.c_str ())); cur_line++; cur_line_no++; |