aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Möllmann2025-03-16 21:17:55 +0100
committerGerd Möllmann2025-03-16 21:24:36 +0100
commiteab14d68b2e72b9a6b8b0cc67c9667c2bfbed4f5 (patch)
treef534f25e997cf89dd311f1f349982275f6151d7d /src
parent7f2e4508cebe76a885b72ca4789ae839d5bd45e1 (diff)
downloademacs-eab14d68b2e72b9a6b8b0cc67c9667c2bfbed4f5.tar.gz
emacs-eab14d68b2e72b9a6b8b0cc67c9667c2bfbed4f5.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 4f4dcdf1dfb..683c6ba4226 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -506,8 +506,9 @@ adjust_glyph_matrix (struct window *w, struct glyph_matrix *matrix, int x, int y
506 row->glyphs[LEFT_MARGIN_AREA] 506 row->glyphs[LEFT_MARGIN_AREA]
507 = xnrealloc (row->glyphs[LEFT_MARGIN_AREA], 507 = xnrealloc (row->glyphs[LEFT_MARGIN_AREA],
508 dim.width, sizeof (struct glyph)); 508 dim.width, sizeof (struct glyph));
509 memset (row->glyphs[LEFT_MARGIN_AREA], 0,
510 dim.width * sizeof (struct glyph));
509 511
510 /* The mode line, if displayed, never has marginal areas. */
511 if ((row == matrix->rows + dim.height - 1 512 if ((row == matrix->rows + dim.height - 1
512 && !(w && window_wants_mode_line (w))) 513 && !(w && window_wants_mode_line (w)))
513 || (row == matrix->rows && matrix->tab_line_p) 514 || (row == matrix->rows && matrix->tab_line_p)