Make sure to initialize glyph::frame to NULL (bug#77039)
* src/dispnew.c (adjust_glyph_matrix): Clear glyph memory when enlarging window-system window glyph matrices.
This commit is contained in:
parent
7f2e4508ce
commit
eab14d68b2
1 changed files with 2 additions and 1 deletions
|
@ -506,8 +506,9 @@ adjust_glyph_matrix (struct window *w, struct glyph_matrix *matrix, int x, int y
|
|||
row->glyphs[LEFT_MARGIN_AREA]
|
||||
= xnrealloc (row->glyphs[LEFT_MARGIN_AREA],
|
||||
dim.width, sizeof (struct glyph));
|
||||
memset (row->glyphs[LEFT_MARGIN_AREA], 0,
|
||||
dim.width * sizeof (struct glyph));
|
||||
|
||||
/* The mode line, if displayed, never has marginal areas. */
|
||||
if ((row == matrix->rows + dim.height - 1
|
||||
&& !(w && window_wants_mode_line (w)))
|
||||
|| (row == matrix->rows && matrix->tab_line_p)
|
||||
|
|
Loading…
Add table
Reference in a new issue