diff options
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c index 975c9c68f39..14e71fffa80 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10841,13 +10841,16 @@ x_delete_display (dpyinfo) xfree (dpyinfo->font_table[i].name); } - if (dpyinfo->font_table && dpyinfo->font_table->font_encoder) - xfree (dpyinfo->font_table->font_encoder); - if (dpyinfo->font_table) - xfree (dpyinfo->font_table); - xfree (dpyinfo->x_id_name); - xfree (dpyinfo->color_cells); + { + if (dpyinfo->font_table->font_encoder) + xfree (dpyinfo->font_table->font_encoder); + xfree (dpyinfo->font_table); + } + if (dpyinfo->x_id_name) + xfree (dpyinfo->x_id_name); + if (dpyinfo->color_cells) + xfree (dpyinfo->color_cells); xfree (dpyinfo); } |