gdb/tui: restore delete of window objects

In commit:

  commit f237f998d1168139d599c550d54169cd8f94052d
  Date:   Mon Jan 25 18:43:19 2021 +0000

      gdb/tui: remove special handling of locator/status window

I accidentally remove a call to delete the tui window objects.  Now
every time GDB changes tui layout it is leaking windows.

gdb/ChangeLog:

	* tui/tui-layout.c (tui_apply_current_layout): Restore the delete
	of the window objects.
This commit is contained in:
Andrew Burgess
2021-02-08 11:11:24 +00:00
parent 2708dbbd58
commit a53a265752
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
* tui/tui-layout.c (tui_apply_current_layout): Restore the delete
of the window objects.
2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
* python/python.c (gdbpy_print_stack): Reformat an error message.

View File

@ -104,6 +104,7 @@ tui_apply_current_layout ()
{
if (focus == win_info)
tui_set_win_focus_to (tui_windows[0]);
delete win_info;
}
}