diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-08 11:11:24 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-08 11:11:24 +0000 |
commit | a53a265752ef4b911d175aea62e082e54e717497 (patch) | |
tree | f037a612ad7ee75ea771f465bb764bba2d684de9 | |
parent | 2708dbbd58fd5ccdbf07b6da812a45e228659268 (diff) | |
download | gdb-a53a265752ef4b911d175aea62e082e54e717497.zip gdb-a53a265752ef4b911d175aea62e082e54e717497.tar.gz gdb-a53a265752ef4b911d175aea62e082e54e717497.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/tui/tui-layout.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a45c2c7..3b9615d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 90555f5..f01e2f9 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -104,6 +104,7 @@ tui_apply_current_layout () { if (focus == win_info) tui_set_win_focus_to (tui_windows[0]); + delete win_info; } } |