From bf05a50df83c9e78f30f3e83a535ebfbc7a276f4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 10 Jun 2024 22:13:29 +0300 Subject: [PATCH] Avoid rare assertion violations when deleting a frame * src/dispnew.c (adjust_frame_glyphs): Allow nrows = 0 when deleting a frame. (Bug#71475) (cherry picked from commit 7c97d05b56a90251cbe94099d211225b330449b1) --- src/dispnew.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dispnew.c b/src/dispnew.c index e74147f1456..8bbb818bc19 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -1851,6 +1851,7 @@ adjust_frame_glyphs (struct frame *f) eassert (FRAME_INITIAL_P (f) || noninteractive || !initialized + || !f->terminal->name /* frame is being deleted */ || (f->current_matrix && f->current_matrix->nrows > 0 && f->current_matrix->rows -- 2.39.2