Change tui_make_window to be a method
[platform/upstream/binutils.git] / gdb / tui / tui-source.c
index 07de328..906006a 100644 (file)
@@ -153,8 +153,7 @@ tui_source_window::set_contents (struct gdbarch *arch,
            = tui_locator_win_info_ptr ();
          const char *s_filename = symtab_to_filename_for_display (s);
 
-         xfree (title);
-         title = xstrdup (s_filename);
+         title = s_filename;
 
          xfree (fullname);
          fullname = xstrdup (symtab_to_fullname (s));