10649 |
x_delete_display (dpyinfo) |
x_delete_display (dpyinfo) |
10650 |
struct x_display_info *dpyinfo; |
struct x_display_info *dpyinfo; |
10651 |
{ |
{ |
10652 |
|
int i; |
10653 |
|
|
10654 |
delete_keyboard_wait_descriptor (dpyinfo->connection); |
delete_keyboard_wait_descriptor (dpyinfo->connection); |
10655 |
|
|
10656 |
/* Discard this display from x_display_name_list and x_display_list. |
/* Discard this display from x_display_name_list and x_display_list. |
10702 |
xim_close_dpy (dpyinfo); |
xim_close_dpy (dpyinfo); |
10703 |
#endif |
#endif |
10704 |
|
|
10705 |
|
/* Free the font names in the font table. */ |
10706 |
|
for (i = 0; i < dpyinfo->n_fonts; i++) |
10707 |
|
if (dpyinfo->font_table[i].name) |
10708 |
|
{ |
10709 |
|
if (dpyinfo->font_table[i].name != dpyinfo->font_table[i].full_name) |
10710 |
|
xfree (dpyinfo->font_table[i].full_name); |
10711 |
|
xfree (dpyinfo->font_table[i].name); |
10712 |
|
} |
10713 |
|
|
10714 |
|
if (dpyinfo->font_table->font_encoder) |
10715 |
|
xfree (dpyinfo->font_table->font_encoder); |
10716 |
|
|
10717 |
xfree (dpyinfo->font_table); |
xfree (dpyinfo->font_table); |
10718 |
xfree (dpyinfo->x_id_name); |
xfree (dpyinfo->x_id_name); |
10719 |
xfree (dpyinfo->color_cells); |
xfree (dpyinfo->color_cells); |