mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-18 10:16:51 +00:00
(x_delete_display): Extract kboard deletion, for modularity.
This commit is contained in:
parent
e50b8090d9
commit
39f7900173
11
src/xterm.c
11
src/xterm.c
@ -5811,16 +5811,7 @@ x_delete_display (dpyinfo)
|
||||
#endif
|
||||
#ifdef MULTI_KBOARD
|
||||
if (--dpyinfo->kboard->reference_count == 0)
|
||||
{
|
||||
KBOARD **kbp;
|
||||
for (kbp = &all_kboards; *kbp != dpyinfo->kboard;
|
||||
kbp = &(*kbp)->next_kboard)
|
||||
if (*kbp == NULL)
|
||||
abort ();
|
||||
*kbp = dpyinfo->kboard->next_kboard;
|
||||
wipe_kboard (dpyinfo->kboard);
|
||||
xfree (dpyinfo->kboard);
|
||||
}
|
||||
delete_kboard (dpyinfo->kboard);
|
||||
#endif
|
||||
xfree (dpyinfo->font_table);
|
||||
xfree (dpyinfo->x_id_name);
|
||||
|
Loading…
Reference in New Issue
Block a user