gdb/tui: restore delete of window objects
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 11:11:24 +0000 (11:11 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 11:11:24 +0000 (11:11 +0000)
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.

gdb/ChangeLog
gdb/tui/tui-layout.c

index a45c2c7499b932756826b572e93e94c26e43b3c1..3b9615dfe4214ade0cc637b45904e2be7247175d 100644 (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.
index 90555f52736e747cbe3bf9136220d1d26b857119..f01e2f9f3a6a6dcc28b5704d6a0a1d656da07f7b 100644 (file)
@@ -104,6 +104,7 @@ tui_apply_current_layout ()
        {
          if (focus == win_info)
            tui_set_win_focus_to (tui_windows[0]);
+         delete win_info;
        }
     }