Add destructor to tui_win_info
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 15:43:21 +0000 (09:43 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:24 +0000 (07:48 -0600)
commite7e11af42dca6482302833c4106974176aa66052
tree860e1f2507d94d374e92096234f24247f2a5690c
parent6792b55e08ec49f40916d4f8d7168d0047b9e928
Add destructor to tui_win_info

This changes tui_free_window into a destructor for tui_free_window and
then updates the users.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-win.c (tui_resize_all): Use delete.
* tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
destructor.
(tui_free_window): Don't declare.
* tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
Update.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-win.c