]> git.eshelyaron.com Git - emacs.git/commit
Release xft_data in widget destroy callback to avoid visual distraction
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 23 Apr 2019 08:27:04 +0000 (17:27 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 23 Apr 2019 08:27:04 +0000 (17:27 +0900)
commit085929ca9309a170b5b4252448f1291e3db2b594
tree974993429e2cfa9b49e1ccf37045b3360fd7ec1b
parent6fa8d3c894062e7d3bde2d1ed35b40f2272e59f5
Release xft_data in widget destroy callback to avoid visual distraction

* lwlib/lwlib-int.h (struct _widget_instance) [HAVE_XFT]: Remove nr_xft_data.
* lwlib/lwlib-Xaw.c (find_xft_data, xaw_update_one_widget) [HAVE_XFT]: Loop
while widget member is not NULL instead of using nr_xft_data.
(xaw_destroy_instance) [HAVE_XFT]: Move xft_data release code from here ...
(destroy_xft_data) [HAVE_XFT]: ... to here.
(make_dialog) [HAVE_XFT]: Add destroy_xft_data as destroy callback for dialog.
lwlib/lwlib-Xaw.c
lwlib/lwlib-int.h