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:
Gerd Möllmann 2025-03-16 21:17:55 +01:00
parent 7f2e4508ce
commit eab14d68b2

View file

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