Commit 39f79001 authored by Karl Heuer's avatar Karl Heuer
Browse files

(x_delete_display): Extract kboard deletion, for modularity.

parent e50b8090
......@@ -5811,16 +5811,7 @@ x_delete_display (dpyinfo)
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);
xfree (dpyinfo->font_table);
xfree (dpyinfo->x_id_name);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment