1
0
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:
Karl Heuer 1995-03-31 03:57:05 +00:00
parent e50b8090d9
commit 39f7900173

View File

@ -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);